切换布局
显示结果
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>迹忆客(jiyik.com)</title> <script src="https://www.jiyik.com//templets/jiyi/v2/js/jquery-2.2.4.min.js"> </script> <script> $(document).ready(function(){ $("button").click(function(){ $("#div1").width(500).height(500); }); }); </script> </head> <body> <div id="div1" style="height:100px;width:300px;padding:10px;margin:3px;border:1px solid blue;background-color:lightblue;"></div> <br> <button>重置 div 大小</button> </body> </html>