<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中运行它,他就会冻结,而根本不会移动。
感谢正手