1:效果:
2:当鼠标移到序号三时,变为灰色,移到其他地方恢复原色
3:实现代码如下:
<script type="text/javascript">
$(document).ready(function(){
$("tr").bind("mouseover",function(){
$(this).css("background-color","#eeeeee");
});
$("tr").bind("mouseout",function(){
$(this).css("background-color","#ffffff");
});
});
</script>