【发布时间】:2011-01-30 17:31:26
【问题描述】:
我使用以下 jquery 语句,
$(".resultsdiv:odd").css("background-color", "#fff");
$(".resultsdiv:even").css("background-color", "#EFF1F1");
$('.resultsdiv').hover(function() {
$(this).css('background-color', '#f4f2f2');
},
function() {
$(this).css('background-color', '#fff');
});
Alternate 最初似乎没问题,但是在将鼠标悬停在 div 元素上后它不起作用...任何建议...
【问题讨论】: