Setting number of visible images in jCarousel

后端 未结 5 1696
春和景丽
春和景丽 2020-12-11 21:36

I integrated jCarousel into my asp.net page but it\'s always showing only 3 images at a time. If I need to show 10 images at a time, then what should I change i

5条回答
  •  执笔经年
    2020-12-11 22:11

    I recently ran across the same problem. It turns out that if you have an earlier version of jQuery it will default to three items no matter what your visibility is set to.

    I could not find the skin widths in my CSS file though, so I could just be missing something.

    I figured this out by playing with it here: http://jsfiddle.net/xNjwh/168/ , reverting to my older jQuery version, and messing with the following code:

    jQuery('#mycarousel').jcarousel({visible: 4});
    

提交回复
热议问题