2017-03-08 117 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 });