开发者

jCarousel Next Button Doesn't Work Unless Inspected by Developer Tool

I did a clean jCarousel setup, meaning I didn't use the provided stylesheet or any of the skins and styled it from scratch. But the Next button isn't working. The weird thing is that it does work after I inspect it with FireBug or the built-in element inspector on Chrome. I assume it has something to do with the element being in focus, but I don't know how to fix the problem. I tried modifying the z-开发者_如何学编程indexes of the elements but to no avail. Any ideas as to what's going on here? Thanks!


A bit old.. but this could help someone else with the same problem:

I tried many solution, the only one that worked for me was playing with css definitions. The values of the caorousel container in your selected skin.css are used by jcarousel to evaluate the number of visible elements, and, i presume, some other thing.

Try to set the width of these elements:

.jcarousel-skin-tango .jcarousel-container-horizontal {
[..]
}

.jcarousel-skin-tango .jcarousel-clip-horizontal {
    width: ..;
[..]
}

The "next" button stopped working form me when using a width greater than the containig div. And with some other value, I don't know why.


Perhaps you left some

console.log(...)

in your code. Try removing those

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜