jquery特效 table鼠标滑过变色的实现代码

来源:互联网 发布:java mvc框架下载架包 编辑:程序博客网 时间:2024/04/20 03:13

一例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); 
});
原创粉丝点击