当前位置:Gxlcms > JavaScript > 写得不错的jquery table鼠标经过变色代码

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

时间:2021-07-01 10:21:17 帮助过:8人阅读

代码如下:

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

人气教程排行