读书人

jquery 报表鼠标 变色

发布时间: 2012-11-05 09:35:11 作者: rapoo

jquery 表格鼠标 变色

    <script type="text/javascript">        $(document).ready(function() {                     $(".frame tr").mouseover(function() {                if ($(this).index() > 0) {                    $(this).addClass("over");                }            }).mouseout(function() {                if ($(this).index() > 0) {                    $(this).removeClass("over");                }            });        });    </script>    <style type="text/css">        td.locked {            position: relative;            left: expression(document.getElementById("divTableContainer").scrollLeft);            background-color: #8EAAE9;            z-index: 0;        }        tr.over td {            background: #bcd4ec;             cursor: pointer;        }    </style>
?

读书人网 >Web前端

热点推荐