Browse Source

自定义滚动条

zhangxc 5 years ago
parent
commit
0a8ef50207
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/js/scrollBar.js

+ 4 - 0
src/js/scrollBar.js

@@ -25,6 +25,9 @@
       // 覆盖参数
       // 覆盖参数
       $.extend(true, self.options, options||{});
       $.extend(true, self.options, options||{});
       self._initDomEvent();
       self._initDomEvent();
+      $(window).on("resize",function(){
+        self._initDomEvent();
+      })
       return self;
       return self;
     },
     },
 
 
@@ -72,6 +75,7 @@
           "width": "100%",
           "width": "100%",
           "height": "5px",
           "height": "5px",
           "bottom": "0px",
           "bottom": "0px",
+          "zIndex": "100"
         })
         })
         this.$slider.css({
         this.$slider.css({
           "height":"5px"
           "height":"5px"