写得不错的jquery table鼠标经过变色代码
(编辑:jimmy 日期: 2025/5/12 浏览:3 次 )
复制代码 代码如下:
$('#<%=AllEvent.ClientID%> tr:not(:has("th"))').hover(function () {
$bg = $(this).css('background-color');
$(this).css('background-color', '#ffc4c6');
},
function () {
$(this).css('background-color', $bg);
});
$('#<%=AllEvent.ClientID%> tr:not(:has("th"))').hover(function () {
$bg = $(this).css('background-color');
$(this).css('background-color', '#ffc4c6');
},
function () {
$(this).css('background-color', $bg);
});
下一篇:模拟jQuery中的ready方法及实现按需加载css,js实例代码