区分clientHeight,offsetHeight,scrollHeight
2015-03-17 11:18
316 查看
1.scrollLeft指元素X轴滚动至包含元素左边的宽度;scrollTop指Y轴滚动至包含元素上边的高度;
2.
clientHeight=content+padding
offsetHeight=content+padding+border
scrollHeight=content+padding+隐藏高度
2.
clientHeight=content+padding
offsetHeight=content+padding+border
scrollHeight=content+padding+隐藏高度
相关文章推荐
- js中offsetHeight、clientHeight、scrollHeight等相关属性区分总结
- 关于clientHeight、offsetHeight、scrollHeight
- IE和FF下document.body对象的clientHeight,offsetHeight,scrollHeight的差别
- height、clientHeight、scrollHeight、offsetHeight区别
- 四种浏览器对 clientHeight、offsetHeight、scrollHeight、clientWidth、offsetWidth 和 scrollWidth 的解释差异
- css clientheight、offsetheight、scrollheight详解
- offsetTop、offsetLeft、offsetWidth、offsetHeight,scrollTop、scrollLeft、scrollWidth、scrollHeight ,clientHeight、offsetHeight
- [转]详解clientHeight、offsetHeight、scrollHeight
- IE和FF下document.body对象的clientHeight,offsetHeight,scrollHeight的差别
- 【转】clientHeight、offsetHeight和scrollHeight
- 四种浏览器对 Document.Body 的 ClientHeight、OffsetHeight 和 ScrollHeight 的解释
- IE和FF下document.body对象的clientHeight,offsetHeight,scrollHeight的差别
- 页面位置 top、postop、scrolltop、offsetTop、scrollHeight、offsetHeight、clientHeight
- 详解clientHeight、offsetHeight、scrollHeight
- 四种浏览器对 document.body 的 clientHeight、offsetHeight 和 scrollHeight 的解释
- 有关获取屏幕坐标的clientHeight、offsetHeight、scrollHeight、clientWidth、offsetWidth 和 scrollWidth
- js中clientHeight、offsetHeight、scrollHeight、scrollTop详解
- 深刻了解offsetTop,offsetLeft,offsetWidth,offsetHeight,scrollTop,scrollLeft,scrollWidth,scrollHeight,clientHeight,clientWidth
- offsetHeight,clientHeight,scrollHeight,offsetY等属性的理解
- clientHeight、scrollHeight、offsetHeight和scrollTop之间区别