document.documentElement和document.body
2016-03-05 19:05
447 查看
<script> var a9=document.documentElement.clientWidth;// 包含margin-top ,bottom var a10=document.body.clientWidth;//不包含margin-left,right var a11=document.documentElement.offsetHeight;//包含margin-top ,bottom var a12=document.body.clientHeight;//不包含margin-top bottom var a13=document.documentElement.offsetWidth;//包含margin-left,right var a14=document.body.offsetWidth;//不包含margin-left,right var a15=document.documentElement.offsetHeight;//包含margin-top bottom var a16=document.body.offsetHeight;//不包含margin-top bottom </script>
相关文章推荐
- 浅谈jQuery中height与width
- 使用jquery中height()方法获取各种高度大全
- 基于jquery的文章中所有图片width大小批量设置方法
- jquery获取文档高度和窗口高度汇总
- jQuery中的height innerHeight outerHeight区别示例介绍
- jQuery中height()方法用法实例
- jQuery中width()方法用法实例
- js中不同的height, top的区别对比
- height、clientHeight、scrollHeight、offsetHeight
- jQuery,javascript获得网页的高度和宽度
- width不同浏览器兼容问题
- img的width和height属性
- 如何设置span的width
- 创建UILable的时候,可以根据文字算出文字所占区域大小的方法
- [转]js获取各种宽高
- div设置高度height:100%实际却为0的解决
- jquery width,innerWidth,outerWidth 区别
- DIV+CSS虚线边框|CSS虚线下划线及虚线列表教程
- 【CSS】width 、clientWidth、scrollWidth、offsetWidth
- 公众平台测试帐号开发全流程第1篇-引言