当前位置: 移动技术网 > IT编程>开发语言>JavaScript > jquery table鼠标经过变色代码

jquery table鼠标经过变色代码

2018年12月09日  | 移动技术网IT编程  | 我要评论

代码如下:


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

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网