【问题标题】:custom scrollbar gets loaded but not visible自定义滚动条已加载但不可见
【发布时间】:2016-02-09 12:39:34
【问题描述】:

我在我的网页http://manos.malihu.gr/jquery-custom-content-scroller/上安装了这个自定义的js滚动条

我看到脚本将 mcustomscrollbar 类添加到正文中,所以我猜这不是编码问题。

我使用简单的 jquery 标记将其加载到 html 中。

<script>
  (function($){
$(window).load(function(){
  $("body").mCustomScrollbar({
    theme:"3d-thick",
      scrollInertia: 150,
      axis:"y",
    scrollButtons:{
      enable:true
    }
  });
  $(".board").mCustomScrollbar({
    axis:"y",
    theme:"3d"
  });
});
})(jQuery);
</script>

这是不加载自定义滚动条的问题页面。

http://lifeto.cafe24.com/xe/request

谁能帮帮我?

【问题讨论】:

    标签: jquery


    【解决方案1】:

    我想你可能忘记添加 &lt;script src="/path/to/jquery.mCustomScrollbar.concat.min.js"&gt;&lt;/script&gt;在你的 head 标签的底部,因为它告诉你这样做。

    【讨论】:

    • 我刚刚将 替换为 但什么也没发生。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-05-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-21
    • 2023-03-17
    • 1970-01-01
    相关资源
    最近更新 更多