欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

jquery table鼠标经过变色代码

程序员文章站 2022-05-02 22:58:09
代码如下: $('#<%=allevent.clientid%> tr:not(:has("th"))').hover(function () {...

代码如下:


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