【问题标题】:Jquery Scrollable, is it possible to customize it with a scroll bar?Jquery Scrollable,是否可以使用滚动条对其进行自定义?
【发布时间】:2014-02-19 22:58:22
【问题描述】:

Jquery Scrollable 是 Jquery Tool 的一个工具,可以滚动图像/视频列表

http://jquerytools.org/demos/scrollable/

但我只是想知道,你们中是否有人尝试使用滚动条对其进行自定义。我的意思是我们想在下一页使用 Jquery 可滚动

http://www.space.ca/Face-Off.aspx

但我们希望滚动条保持在底部,而不是使用左右箭头滚动视频轮播。

这可能吗?如果你做过 JQuery Scrollable 的自定义并使用滚动条,请和我分享一些技巧

非常感谢

【问题讨论】:

    标签: javascript jquery jquery-tools


    【解决方案1】:

    您可以使用纯 css 存档:

    <div class="scrollMe">
        <div>Do what ever you want</div>
    </div>
    

    然后确保你的 css 是有序的:

    .scrollMe {
         overflow-x: hidden;
         overflow-y: scroll;
         white-space: nowrap; /* this is important for you, this means that you will keep everything in a single line which will make this guy scroll on the y-axis. If you need multiline on the childs you need to set: white-space: nowrap; on the childs  */
    }
    

    你所有的块级孩子都需要display: inline-block;

    .scrollMe > div {
        display: inline-block;
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-07-02
      • 1970-01-01
      • 2013-08-06
      • 1970-01-01
      • 2010-10-30
      • 1970-01-01
      • 2013-07-08
      相关资源
      最近更新 更多