jQuery 效果 - animate() 方法

jQuery 效果 - animate() 方法

改变DIV的高度

$(".btn1").click(function(){
  $("#box").animate({height:"300px"});
});

语法

$(selector).animate(styles,speed,easing,callback)

同时也可以调用一个方法

$("#box").animate({height:"400px"},function(){
alert("123")});

猜你喜欢

转载自blog.csdn.net/qq_42311703/article/details/83111774
今日推荐