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

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

程序员文章站 2022-05-19 21:22:29
...
复制代码 代码如下:

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