jCarousel无限循环-未设置宽度或高度 [英] jCarousel Infinite Loop - no width or height set

查看:92
本文介绍了jCarousel无限循环-未设置宽度或高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设置了jcarousel以在元素消失时动态加载元素,然后让它们重新出现

I've setup jcarousel to dynamically load elements as they disappear and then have them reappear

现在它给我一个错误,说:没有为项目设置宽度/高度."

now it's given me an error saying: "No width/height set for items."

我已经尝试过此处所述的黑客攻击:

I've tried the hack described here: http://old.nabble.com/jCarousel:-No-width-height-set-for-items.-td13913308s27240.html

它导致Firefox崩溃(可能是因为它不断循环)

and it caused firefox to crash (probably because it's looping constantly)

有什么想法吗?

推荐答案

您需要在.jcarousel-clip容器上设置一个明确的高度

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

这篇关于jCarousel无限循环-未设置宽度或高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆