`
收藏列表
标题 标签 来源
JQuery鼠标滑过表格变色 jquery http://hdycfm.blog.51cto.com/3937463/863220
 </script>
   <style>
    .over { background-color:#77DDFF;}  //定义鼠标滑过的颜色
 </style>
 <script type="text/javascript">
   $(function(){
          $("#table1 tr").hover(function(){  //table1  指的是一个table的ID
           $(this).addClass("over");
           },function(){
            $(this).removeClass("over");
            });
         });
   </script>
Global site tag (gtag.js) - Google Analytics