当鼠标移动上去则改变底色。用jquery封装好的

解决方案 »

  1.   

    //垂直滚动条
    (function($) {
        $.extend($.fn, {
            overflow: function(height) {
                $(this).removeAttr("style");
                var odiv = this;
                var h = $(this).height();
                if (parseFloat(h) >= parseFloat(height)) {
                    $(this).height(height);
                    $(this).css("overflow-y", "auto");
                    $(this).css("overflow-x", "visible");
                }
                else {
                    $(this).removeAttr("style");
                    $(this).height(h);
                }            return odiv;
            }
        }); // end of extend $.fn
    })(jQuery);