2013-06-13 53 views
1
<div id="animate" style="position: fixed; top: 150px; right: -1000px; width: 100%;height: 300px;"><A HREF="http://www.example.nl"><img src="http://www.example.nl/img/test.png"></a></div> 
<script> 
$('#animate').animate({ 
right: '2000px', 
}, 50000, function() { 
// Animation complete. 
}); 
</script> 

这个脚本的问题是,如果我在Chrome中运行它,它会从右向左滑动。但是,只要我想在FireFox中运行它,他就会冻结,并且根本不会移动。jquery水平滑块不工作firefox

谢谢正手

回答

1

#animateposition: absolute;这应该可以解决您的问题!

编辑:我提供了一个FIDDLE作品在Firefox 21

+0

好试了一下,不幸的是它没有工作。 –

+0

看看我的编辑!您将动画时间设置为50秒。那是正确的? – supersize