JCarousel包装设置为“圆形"错误 [英] JCarousel wrap set to 'circular' bug

查看:95
本文介绍了JCarousel包装设置为“圆形"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图设置一个JCarousel实例,将wrap设置为圆形,但是,我注意到一个问题,即我在Chrome中检查元素",当幻灯片重复时,重复的<li>元素会添加到html中(可以在官方示例页面上查看).

I'm trying to set up a JCarousel instance with the wrap set to circular, however, I noticed an issue where I "inspect element" in Chrome, duplicate <li> elements are added to the html when the slides repeat (it can be viewed on the official example page).

http://sorgalla.com/projects/jcarousel/examples/static_circular.html

我知道这是GitHub上的一个开放错误.我只是想知道是否有人找到了临时解决方法.

I know this is an open bug on GitHub. I'm just wondering if anyone has found a temporary workaround.

推荐答案

我通过在li中给li项提供明确的宽度和高度来解决这个问题

i solve it with giving the li items explicit width and height in the css

.jcarousel-item {width:200px;height:200px;}

这篇关于JCarousel包装设置为“圆形"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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