我有下面的代碼,我用於淡入淡出和淡出狀態懸停狀態。JQuery淡入淡出淡出問題
$(function(){
$("#bottomIco ul li a").hover(function(){
$(this).children("#gray").fadeOut("100",function(){
$(this).parent().children("#actual").fadeIn("100");
});
},function(){
$(this).children("#actual").fadeOut("100",function(){
$(this).parent().children("#gray").fadeIn("100");
});
});
});
它的工作原理,但是當我在#gray中徘徊有空白,然後#actual div來了。
我需要使它平滑,即當我懸停時不需要空白。
如果可能的話,示例標記將有很大幫助 – Dhiraj
然後請提供一個jsfiddle示例和css以及 –