这让我发疯了..所以我试图将 JCarousel 添加到我正在开发的网站上,一切都很顺利,直到进行可怕的 IE 兼容性测试。
无论出于何种原因,轮播只有在我打开检查元素选项卡时才会工作。我一辈子都弄不明白。
我认为这可能与我将它加载到一个设置为 display:none 然后使其可见的 div 中这一事实有关,但我关闭了所有这些我仍然遇到了同样的问题。
这是该站点的链接:
http://www.consultgray.com/newdesign/co/#team
如果有人能提供帮助,我将不胜感激!
最佳答案
我知道这是旧的,但我们的客户仍在使用它,我们刚刚遇到了这个问题。
@user3696000 你的解决方案运行良好。
Problem solved! Apparently JCarousel decides whether it is a horizontal or a vertical carousel by auto detecting the width if it isn't explicitly specified.. while this wasn't a problem in any of the other browsers, IE was returning a large vertical value than horizontal. I just added ({ vertical: false }) to my jcarousel instantiator and it solved the problem. – user3696000
关于javascript - JCarousel 仅在我打开检查元素窗口时在 IE11 中运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23976278/