您的 宣传网址:
复制网址
手机查看
宣传有奖
首页
编程学习
源代码:
html编辑器
颜色值转换
点击运行
空若网<script src="https://cdn.staticfile.net/jquery/1.10.2/jquery.min.js"> </script> <script> $(document).ready(function(){ $("button").click(function(){ alert(" div的外部高度: " + $("div").outerHeight()); }); }); </script> <div style="height:100px;width:300px;padding:10px;margin:3px;border:1px solid blue;background-color:lightblue;"></div><br> <button>显示div的外部高度</button> <p>outerHeight() - 返回元素的高度 (包括内部填充和边框)。</p>
运行结果:
×
空若网-温馨提示
您尚未登陆
请登陆后在来吧
立即登陆
注册账号
空若网