jCarousel Infinite Loop - no width or height set

ぃ、小莉子 提交于 2019-12-07 03:24:28

You need to set an explicit height on the .jcarousel-clip container

ThmHarsh
jQuery('#mycarousel').jcarousel(
{
    auto : 2,
    scroll : 1,
    wrap : 'last',
    initCallback : mycarousel_initCallback,
    itemFallbackDimension: 300
});

So ignore my comment response to @TALLBOY. I was able to fix this issue by specifying a width for div.carousel-container which is an element that is added by the code when the carousel is initialized.

I stumbled across this during my searches:

http://github.com/jsor/jcarousel/issuesearch?state=open&q=width#issue/22

Guys this should work

.jcarousel-list li { height:??px; width: ??px; }

When you put your height and width in, in your css file it should appear.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!