js中盒子模型常用的属性你还记得几个?

  1. clientWidth;  内容宽度Width+左右填充padding
  2. clientHeight;  内容高度height+上下填充padding
  3. clientLeft;  左边框的宽度相当于border-left
  4. clientTop;  上边框的宽度相当于border-top
  5. offsetWidth;  clientWidth+左右边框
  6. offsetHeight;  clientHeight+上下边框
  7. scrollHeight;  真实内容宽度+上填充padding
  8. scrollWidth;  真实内容宽度+左填充padding
  9. scrollLeft;  滚动条卷去的宽度
  10. scrollTop;  滚动条卷去的高度
关于操作浏览器本身的盒子模型信息
  1. clientWidth、clientHeight、 表示浏览器可视窗口的宽高
  2. scrollWidth、scrollHeight、 表示浏览器真实页面的宽高
上一篇:QT 5.4.1 for Android Windows环境搭建


下一篇:不错的开源FTP类库