2017-03-08 122 views

回答

0

您可以更改滑块设置为循环

$(".owl-carousel").owlCarousel({ 
       autoPlay: true, 
       navigation : false, // Show next and prev buttons 
       slideSpeed : 10000, 
       paginationSpeed : 500, 
       loop:true 
      }); 
+0

我很欣赏你的输入家伙。代码是一团糟,我知道它。他使用内联和内部的CSS,我甚至没有开始看这个。我想从旋转木马开始。我对这个旋转木马知之甚少,所以我想我会联系你们。我在main.css中看到为旋转木马设置了两个滑块图像。我改变了行以显示循环:true。不知道从这里做什么。网址是 - jandswebsitedesigns.com/family –

0
  1. 您应该更新流轮播到当前版本owl-carousel-2
  2. 您也可以更新您的代码

$(".owl-carousel").owlCarousel({ 
 
\t \t \t \t autoPlay: true, 
 
    \t \t \t \t navigation : false, // Show next and prev buttons 
 
    \t \t \t \t slideSpeed : 10000, 
 
    \t \t \t \t paginationSpeed : 500, 
 
    \t \t \t \t loop:true, 
 
\t \t \t  responsiveClass:true, 
 
\t \t \t  responsive:{ 
 
\t \t \t \t  0:{ 
 
\t \t \t \t \t  items:1, 
 
\t \t \t \t \t  nav:false 
 
\t \t \t \t  }, 
 
\t \t \t \t  640:{ 
 
\t \t \t \t \t  items:1, 
 
\t \t \t \t \t  nav:false 
 
\t \t \t \t  }, 
 
\t \t \t \t  800:{ 
 
\t \t \t \t \t  items:1, 
 
\t \t \t \t \t  nav:false 
 
\t \t \t \t  } 
 
\t \t \t  } 
 
\t \t \t });