سؤال

JCarouselLite يعمل بشكل جيد لأكثر من صورتين.

ولكن بالنسبة لصورتين أو li JCarouselLite لا يعمل بشكل صحيح.عرض الصورة الأخيرة مرارا وتكرارا.

أيه أفكار ؟

لغة البرمجة:

<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>  

مسج:

$(document).ready(function(){
  $("#explore_slider").jCarouselLite({
    speed: 1000,
    auto: true
  });
});
هل كانت مفيدة؟

المحلول

إضافة المعلمة visible: 1.

$(document).ready(function(){
  $("#explore_slider").jCarouselLite({
  speed: 1000,
  auto: true,
  visible: 1
 });
});
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top