clientHeight:
padding + height - 滚动条的宽度
scrollTop:
可见内容顶部到全部内容顶部的距离,也可以理解为滚动条滚动了的距离
scrollHeight:
padding + 全部内容的高度
offsetHeight:
height + padding + border
参考:
https://www.cnblogs.com/liyonglong/p/6661568.html
clientHeight:
padding + height - 滚动条的宽度
scrollTop:
可见内容顶部到全部内容顶部的距离,也可以理解为滚动条滚动了的距离
scrollHeight:
padding + 全部内容的高度
offsetHeight:
height + padding + border
参考:
https://www.cnblogs.com/liyonglong/p/6661568.html