$("#div4").on({ mouseover :function(){ $(this).animate({height:"200px",opacity:0.3},{duration:3000,step:function(now,fx){$("#div4").text("透明度變化:"+now)}})}, mouseout:function(){ $(this).animate({opacity:1, height:"150px", },{duration:3000,step:function(now,fx){$("#div4").text("透明度變化:"+now)}})}, })});此時animate中有兩個變化的元素 height和opacity,now一般取的是后面的值,如何選擇不同的值?
添加回答
舉報
0/150
提交
取消