版权声明:本文为大都督作者的原创文章,未经 大都督 允许也可以转载,但请注明出处,谢谢! 共勉! https://blog.csdn.net/qq_37335220/article/details/85685480
1.效果图
2.HTML代码
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>55 jQuery-队列中的animate</title>
<style type="text/css">
div{border:solid 1px #666;background-color:#eee;
width:50px;height:50px;font-size:13px;padding:5px}
</style>
</head>
<body>
<div>队列</div>
<script src="../jquery.min.js"></script>
<script type="text/javascript">
$(function(){
//div块单击事件
$("div").click(function(){
//第一列
$(this).animate({height:100}, "slow")
//第二列
.animate({width:100}, "slow")
//第三列
.animate({height:50}, "slow")
//第四列
.animate({width:50}, "slow");
})
})
</script>
</body>
</html>