scrollHeight,offsetHeight,clientHeight的本质区别
scrollHeight,offsetHeight,clientHeight的本质区别
1).element.scrollHeight (只读)
总结
scrollHeight是指元素的滚动视图的高度(Height of the scroll view of an element,即有滚动条时从头部滚动到尾部的高度),它包括元素的内边距,但不包括外边距.
Height of the
转载
2013-05-13 10:52:56 ·
686 阅读 ·
0 评论