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

前端技术 2023/09/04 JavaScript
复制代码 代码如下:

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

本文地址:https://www.stayed.cn/item/10303

转载请注明出处。

本站部分内容来源于网络,如侵犯到您的权益,请 联系我

我的博客

人生若只如初见,何事秋风悲画扇。