【问题标题】:show dots in own-carousel when the window size is less than 768px?当窗口大小小于 768px 时,在 owl-carousel 中显示点?
【发布时间】:2019-09-11 10:31:05
【问题描述】:

我正在制作猫头鹰旋转木马。 我希望当屏幕尺寸小于 768px 时,它在轮播下方显示点,以便用户知道它的轮播在这里响应

【问题讨论】:

标签: jquery css responsive-design owl-carousel


【解决方案1】:

尝试将响应式选项添加到您的轮播中,如下面的代码所示。只需添加断点和该断点所需的选项即可。

responsive : {
    // breakpoint from 0 up
    0 : {
        dots: true
    },
    // breakpoint from 768 up
    768 : {
        dots: false
    }
}

更多示例请访问: https://owlcarousel2.github.io/OwlCarousel2/demos/responsive.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-01-15
    • 2016-03-20
    • 1970-01-01
    • 2015-04-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多