$("#taobaolist tr").live("mouseover", function () {
alert("22");
this.css({"background-color":red});
this.attr("background-color",'red');
});
能alert出来,但使用attr或者css都没有改变啊,请问哪里有错,如何改呢?
赞同最后一句,但我用的就是Jquery啊。。
找到了答案了,$(this).css("background-color", "#e5e5e5").siblings().css("background-color", "#FFFFFF");谢谢
这样不是每个tr都变色了么?现在只需要那个鼠标悬浮在上面的tr变色的。
哦,原来误解楼上了,谢谢各位。