jquery not用法将表头过滤掉,然后使用:EVEN和ODD设置隔行变色

为啥现在这样没效果,我是菜鸟请大神指点

第1个回答  2019-06-25
$('.contain tr:odd').not('.t-head')
$('.contain tr:even').not('.t-head')追问

哥哥再问一个问题为啥标准的代码不能实现

追答

没明白你什么意思?这段代码干嘛用的?

追问

就是鼠标悬浮上去显示,移开就隐藏

追答

$('#nav li').mouseover(function(){
$(this).find('span').show()
// $(this).find('p').show()
}).mouseout(function(){
$(this).find('span').hide();
// $(this).find('p').hide()
});

本回答被提问者采纳
第2个回答  2019-06-25
tr:class 改成 tr[class='t-head']