jQuery循环在IE8中不起作用 - IE10 [英] jQuery cycle not working in IE8 - IE10

查看:422
本文介绍了jQuery循环在IE8中不起作用 - IE10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮我弄清楚为什么jQuery循环调用在以下网站中不起作用吗?

Can someone help me figure out why a jQuery cycle call isn't working in the following website?

http://www.tamarackwellington.com/#floorkey

问题在于循环设置在楼层钥匙部分下。出于某种原因,只有箭头出现在IE8到IE10中,并且平面图从不这样做。

The problem is with the cycle setup under the "Floor Key" section. For some reason only the arrows show up in IE8 to IE10, and the floorplans never do.

我在document.ready()中有这个代码,但似乎在其他浏览器中也会导致同样的问题。把它放在window.load()解决了它,IE8到IE 10除外。

I had this code in a document.ready(), but that seemed to cause the same problem in other browsers as well. Putting it in a window.load() solved it, except in IE8 to IE 10.

$(window).load(function() {

  $('#loadSold').show();

  $('#sold_slide').cycle({ 
        fx:     'scrollHorz', 
        speed:  'fast', 
        timeout: 0, 
        next:   '#nextsold', 
        prev:   '#prevsold'
    });
});


推荐答案

似乎为每个图像添加宽度/高度值在幻灯片中做了诀窍。

Seems that adding a width / height value to each image in the slideshow did the trick.

这篇关于jQuery循环在IE8中不起作用 - IE10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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