首页 > 编程技术 > js

写得不错的jquery table鼠标经过变色代码

发布时间:2013-10-3 13:48

代码如下:

$('#<%=AllEvent.ClientID%> tr:not(:has("th"))').hover(function () { 
$bg = $(this).css('background-color'); 
$(this).css('background-color', '#ffc4c6'); 
}, 
function () { 
$(this).css('background-color', $bg); 
});


标签:[!--infotagslink--]

您可能感兴趣的文章: