<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style type="text/css">
#div1{ width:100px; height:100px; position:absolute; top:0; left:0px; background:blue; }
</style>
</head>
<body>
<div id="div1"></div>
</body>
</html>
<script src="jquery-1.7.1.js"></script>
<script>
$("#div1").click(function(){
$(this).animate({width:400, height:700,left:333, top:466,opacity:0.2},400,function(){
this.style.background="red";
this.style.opacity=1;
})
})
</script>
jquery那点事之animate
最新推荐文章于 2022-11-14 19:05:41 发布