51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

jquery实现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);
});


赞(22)
未经允许不得转载:工具盒子 » jquery实现table鼠标经过变色代码