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

 更新时间:2013年09月27日 17:09:02   作者:  
鼠标经过table变色的效果,想必大家都有遇到过吧,其实实现并不难,在本文为大家详细介绍下jquery是如何实现的,感兴趣的朋友可以参看下
复制代码 代码如下:

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

相关文章

最新评论