如何使用jQuery延迟动画?@H_301_2@
我需要导航来扩展宽度,然后扩展高度,然后反转为反向动画.@H_301_2@
码:@H_301_2@
@H_301_2@
$(function() {
$("#nav li").not("#logo,#nav li ul li").hover(function(){
$(this).animate({width:"200px"},{queue:false,duration:1000});
},function(){
$(this).animate({width:"30px"},duration:1000});
});
$("#nav li.parent").hover(function(){
$(this).children("ul").animate({height:"40px"},duration:500});
},function(){
$(this).children("ul").animate({height:"0px"},duration:500});
});
});
最佳答案