فشل jQuery jCarouselLite في تحريك صورتين
-
12-12-2019 - |
سؤال
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
});
});
لا تنتمي إلى StackOverflow