2012-10-02 24 views
1

如果你看看:http://sweetnation.co.uk/store/index.php?route=product/category&path=60jQuery - .hover .fadeIn/Out - 沒有完全消失?

並將鼠標懸停在菜單的類別部分,類別淡入,但有時他們褪色的一半,你不能看到他們。我不知道是什麼原因造成的。

$(document).ready(function() { 
    $(".hover_bitch, #menu").hover(function(){ 
     $("#menu").stop().fadeIn("fast"); 
    },function(){ 
     $("#menu").stop().fadeOut("fast"); 
    }); 
}); 
+0

其z-index的 – Sudantha

回答

2

嘗試.stop(true, true)

$(document).ready(function() { 
    $(".hover_bitch, #menu").hover(function(){ 
     $("#menu").stop(true, true).fadeIn("fast"); 
    },function(){ 
     $("#menu").stop(true, true).fadeOut("fast"); 
    }); 
}); 
+0

真棒 - 最佳獲得閱讀了我。停止 – user1122925