猫头鹰旋转木马“项目”不工作在1900 +像素

时间:2017-11-16 07:44:45

标签: javascript owl-carousel

我有这个代码。它可以1899px,但大于1900px,项目选项不起作用。

jQuery(document).ready(function () {
    $(".owl-case").owlCarousel({
        autoPlay: 3000,
        items: 3, // THIS IS IMPORTANT
        responsiveClass:true
    });
});

1899px上的第一张图片:

Images in 1899px

1900px上的第二张图片

enter image description here

感谢答案!

2 个答案:

答案 0 :(得分:0)

你缺少循环:true,

jQuery(document).ready(function () {
    $(".owl-case").owlCarousel({
        autoPlay: 3000,
        items: 3, // THIS IS IMPORTANT
        loop: true,
        responsiveClass:true
    });
});

在我的情况下,它正在运作......

或者可能是jquery库。

我正在使用jquery-2.1.4.min.js。

答案 1 :(得分:0)

$(document).ready(function () {
    $(".owl-case").owlCarousel({
        autoPlay: 3000,
        items: 3, // THIS IS IMPORTANT
        loop: true,
        responsiveClass:true
    });
});