我有下面的代码,我用于淡入淡出和淡出状态悬停状态。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以及 –