关于为什么这有时会使页面跳转的任何想法。看起来fadeOut 实际上是在移除元素#main 的高度。它的高度在 CSS 中声明。在 FireFox 20 中测试
$('.active').click(function(){
$('#main').fadeOut(1100, function() {
$(this).load('blank.html', function() {
$(this).fadeIn(1100);
});
});
return false;
});
<div id="main" style="margin-bottom:30px;overflow:hidden">
<div class="slider nivoSlider">
<img src="1.jpg" alt="" />
<img src="2.jpg" alt="" />
<img src="3.jpg" alt="" />
<img src="4.jpg" alt="" />
</div>
</div>
<li><a href="blank.html" class="active">Projects (a)</a></li>