jquery实现table鼠标经过变色代码
作者:用户投稿 浏览: 发布日期:2026-01-16
[导读]:table鼠标经过变色的效果想必大家都有见到过吧,其实实现很简单,在本文有个不错的示例,感兴趣的朋友可以学习下
复制代码 代码如下:
$('#<%=AllEvent.ClientID%> tr:not(:has("th"))').hover(function () {
$bg = $(this).css('background-color');
$(this).css('background-color', '#ffc4c6');
},
function () {
$(this).css('background-color', $bg);
});
免责声明:转载请注明出处:http://jing-feng.com.cn/news/209327.html