0

JCarouselLite适用于两个以上的图像。

但是对于两个图像或 li JCarouselLite 无法正常工作。最后一次图像显示一遍又一遍。

有任何想法吗 ?

HTML

<div id="explore_slider" style="width:980px !important;height:300px;">
  <ul style="width:980px;height:300px;">
    <li><img src="/images/feature_bicflex4.jpg" width="980px" height="300px" /></li>
    <li><img src="/images/feature_bordeauxwine.jpg" width="980px" height="300px" /></li>
  </ul>
</div>  

jQuery :

$(document).ready(function(){
  $("#explore_slider").jCarouselLite({
    speed: 1000,
    auto: true
  });
});
4

1 回答 1

1

添加参数visible: 1

$(document).ready(function(){
  $("#explore_slider").jCarouselLite({
  speed: 1000,
  auto: true,
  visible: 1
 });
});
于 2012-03-12T11:01:14.893 回答