首页 > 语言 > JavaScript > 正文

jquery实现table鼠标经过变色代码

2024-05-06 15:52:25
字体:
来源:转载
供稿:网友
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);
});

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选