javascript - JCarousel 仅在我打开检查元素窗口时在 IE11 中运行

标签 javascript jquery internet-explorer-11 jcarousel

这让我发疯了..所以我试图将 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/

相关文章:

javascript - 动画 View 中出现错误 : Exception in HostFunction: Malformed calls from JS: field sizes are different.

JQuery 加载帮助

css - IE11 不尊重高度 : auto

javascript - 滚动时如何与元素交互?

javascript - 如何在 PHP 中使用 XPATH 从同一类中仅获取一个 HTML 内容?

javascript - 为什么在下载文件时 fetch 一直中断,而在浏览器中手动下载却没有?

javascript - HTML 表单选择与 jQuery 不工作

javascript - 防止脚本在执行时运行两次

html - IE11 不支持背景大小不成比例

css - 如何创建适用于 IE11 的 flexbox 模态框?