jquery特效 table鼠标滑过变色的实现代码
发布时间:2015-11-16 编辑:jiaochengji.com
本文分享一例jquery特交代码,当鼠标滑动table是改变颜色,挺不错的一个小例子,有需要的朋友参考下。
一例table鼠标经过变色的效果,本例由jquery来实现,有兴趣的朋友,研究下吧。
代码:
复制代码 代码示例:
$('#<%=AllEvent.ClientID%> tr:not(:has("th"))').hover(function () {
$bg = $(this).css('background-color');
$(this).css('background-color', '#ffc4c6');
},
function () {
$(this).css('background-color', $bg);
});
$bg = $(this).css('background-color');
$(this).css('background-color', '#ffc4c6');
},
function () {
$(this).css('background-color', $bg);
});
您可能感兴趣的文章:
jquery特效 table鼠标滑过变色的实现代码
jQuery 表格隔行换色 鼠标高亮行变色的实现代码
写得不错的jquery table鼠标经过变色代码
jquery实现table鼠标经过变色代码
基于jquery实现的鼠标滑过按钮改变背景图片
40个有创意的jQuery图片、内容滑动及弹出插件收藏集之一
玩转jQuery按钮 请告诉我你最喜欢哪些?
利用JQuery动画制作滑动菜单项效果实现步骤及代码
js 隔行变色与鼠标悬停自动变色的实现代码
使用jquery hover事件实现表格的隔行换色功能示例
[关闭]