三个高属性

1.屏幕可视区高度

document.documentElement.clientHeight;

2.页面的高度

document.documentElement.scrollHeight;

3.滚动条当前高度

document.documentElement.scrollTop;

document.body.scrollTop;chrome)今天测试时发现谷歌浏览器不再使用该方法,而是使用上述上面的方法,而edge浏览器反而需要使用该方法。