JQuery: animate() doesn't work as expected in IE

后端 未结 8 836
广开言路
广开言路 2021-01-06 02:17

I\'m getting crazy with this IE 7...

==> hhttp://neu.emergent-innovation.com/

Why does following function not work in IE 7, but perfectly with Firefox? Is th

8条回答
  •  悲&欢浪女
    2021-01-06 03:20

    Change your duration for IE. Make it 1/10th what you would in FF, and it should be close to the same behavior in both browsers:

    FF

    $("#map").animate({"top": (pageY - 101) + "px"},{"easing" : "linear", "duration" : 200});
    

    IE

    $("#map").animate({"top": (pageY - 101) + "px"},{"easing" : "linear", "duration" : 20});
    

    Should fix it.

提交回复
热议问题