$("#table1 tr").hover(
function(){
$(this).$("td").css('background-color',"#ccc");
},
function(){
$(this).$("td").css('background-color',"#bbb");
});
}加粗的地方是错误的,我要实现这种效果。 就是对一个对象再次选择它下面的元素。 this.$("td") ? $(object,"td") ?
应该没有这样语法吧。
function(){
$(this).$("td").css('background-color',"#ccc");
},
function(){
$(this).$("td").css('background-color',"#bbb");
});
}加粗的地方是错误的,我要实现这种效果。 就是对一个对象再次选择它下面的元素。 this.$("td") ? $(object,"td") ?
应该没有这样语法吧。
子元素$(this).children();
同辈元素$(this).next();