clientHeight,scrollTop,scrollHeight 区别于应用
clientHeight:padding + height - 滚动条的宽度scrollTop:可见内容顶部到全部内容顶部的距离,也可以理解为滚动条滚动了的距离scrollHeight:padding + 全部内容的高度offsetHeight:height + padding + border参考:https://www.cnblogs.com/liyonglong/p/6661568.html...
原创
2018-04-04 22:57:53 ·
738 阅读 ·
0 评论