<!DOCTYPE html> <!--2jQuery CSS-jQuery盒子模型--> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <script src="jquery-2.1.4.min.js"></script> <script src="js16.js"></script> <style> #div01{ width: 100px; height: 100px; margin: 50px; padding: 50px; border: 5px solid #ffff00; background-color: #b3d4fc; } </style> </head> <body> <div id="div01"></div> </body></html>
js:
/** * Created by hao on 2015/8/16. */ $(document).ready(function(){ $("#div01").click(function(){ //alert($("#div01").height()); //alert($("#div01").innerHeight()); alert($("#div01").outerHeight()); }) } )
jQuery基础----16jQuery CSS-jQuery盒子模型
最新推荐文章于 2020-10-28 11:04:38 发布