写得不错的jquery table鼠标经过变色代码
内容摘要
复制代码 代码如下: $('#<%=AllEvent.ClientID%> tr:not(:has("th"))').hover(function () { $bg = $(this).css('background-color'); $(this).css('background-color', '#
文章正文
复制代码 代码如下:
$('#<%=AllEvent.ClientID%> tr:not(:has("th"))').hover(function () {
$bg = $(this).css('background-color');
$(this).css('background-color', '#ffc4c6');
},
function () {
$(this).css('background-color', $bg);
});
代码注释