abstract:<!DOCTYPE html><html><head> <title></title> <script type="text/javascript" src="http://code.jquery.com/jquery-2.2.4.min.js"></script> <
<!DOCTYPE html> <html> <head> <title></title> <script type="text/javascript" src="http://code.jquery.com/jquery-2.2.4.min.js"></script> <style type="text/css"> #d1 { display: none; width: 100px; height: 100px; background: green; } #d2 { display: block; width: 100px; height: 100px; background: green; } #d3 { display: block; width: 100px; height: 100px; background: green; } </style> </head> <body> <button class="d1">click</button> <div id="d1"></div> <script type="text/javascript" src="http://code.jquery.com/jquery-2.2.4.min.js"></script> <script type="text/javascript"> // 显示/隐藏 $('.d1').click(function(){ // 显示 $('#d1').animate({ height: "300px", width: "800px", left: "200px", top: "200px" }, 1000, function(){ alert('ok'); }); }) </script> </body> </html>
嗯!这个在实际开发中经常用吗?