【问题标题】:mCustomScrollbar move the scrollbar to the rightmCustomScrollbar 向右移动滚动条
【发布时间】:2017-04-27 16:25:57
【问题描述】:

我想将滚动条从 mCustomScrollbar 向右移动一点。

默认值:

希望的结果:

我是这样初始化的:

$(".framed-content").mCustomScrollbar({
    theme: "dark-2",
    scrollButtons:{ enable: true },
});

如果我有 scrollbarPosition: "string" 选项,它在右边太多了,在盒子外面。

这个jQuery插件的给定选项有什么办法吗? http://manos.malihu.gr/jquery-custom-content-scroller/

【问题讨论】:

    标签: jquery scrollbar


    【解决方案1】:

    这是因为框架内容 div 中的填充。我将其删除并将填充放在框架内容 div 内的 div 中:

           <div class="framed-content" style="height:274px;overflow-x:hidden;overflow-y:hidden;">
               <div style="padding:20px;height:400px;">
                  List of frames...
               </div>
           </div>
    

    【讨论】:

      猜你喜欢
      • 2016-09-30
      • 1970-01-01
      • 2013-08-01
      • 2016-12-05
      • 1970-01-01
      • 1970-01-01
      • 2018-04-09
      • 2023-03-08
      • 1970-01-01
      相关资源
      最近更新 更多