猫头鹰旋转木马过渡效果不工作后Chrome最新更新(V36)



我使用OWl旋转木马有一段时间一切都很完美,但最近我在chrome浏览器更新后遇到了一个问题。css的过渡效果在chrome上不再工作了。

但是所有的效果都在firefox上运行良好。

朋友们,我找到解决办法了。

这是……

替换下面一行代码

support3d = (asSupport !== null && asSupport.length >= 1 && asSupport.length <= 2);

代替

support3d = (asSupport !== null && asSupport.length === 1);

这解决了我的问题。

在1.3.3版本中将此替换为

support3d = (asSupport !== null && asSupport.length === 1);
在第804行

中加上:

support3d = (asSupport !== null && asSupport.length >= 1 && asSupport.length <= 2);

那应该没问题!

为了方便,我为它创建了一个分支,方便合并,方便下载:https://github.com/lib-issue/OwlCarousel/tree/stackoverflow_25153801

可以使用:

support3d = (asSupport !== null && asSupport.length !== 0);

我是猫头鹰的一个问题。旋转木马2版本。旋转木马不工作在Chrome。然后我在脚本中添加了这一行。滑块现在在我这边的所有浏览器中都能正常工作。

请在脚本文件中添加var $ = jQuery.noConflict();

交货。

var $ = jQuery.noConflict();
$(document).ready(funnction() {
//your script goes to here
}); 

最新更新