操作:
1.鼠标移动行变色
方法一:jQuery中的hover(fun(),fun())方法,参数一:第一个方法是添加样式功能,参数二:第二个方法是取消样式功能
$(“#table1 tr”).hover(function(){
$(this).children(“td”).addClass(“hover”)
},function(){
$(this).children(“td”).removeClass(“hover”)
})
方法二:
$(“#table1 tr:gt(0)”).hover(function() {
$(this).children(“td”).addClass(“hover”);
}, function() {
$(this).children(“td”).removeClass(“hover”);
});
2.奇偶行不同颜色
$(“#table1 tbody tr:odd”).css(“bac...
jQuery操作Table阅读全文
最新评论
额 英文的 不熟
感觉学了蛮多东西,收藏您的博
刚刚做的网站马上收录了,是否
Check out this
感觉学了蛮多东西,收藏您的博
过来看看,记得回防哦!
明天又要上班了,晚上来博主博
不错,很好,经常来看的,潜水
学到一点知识
劳动节刚过,西安搬家公司(w