HTML 获取屏幕、浏览器、页面的高度宽度

https://www.cnblogs.com/polk6/p/5051935.html

还看到一种写法。。。

document.documentElement.offset

Document.documentElement 是一个会返回文档对象(document)的根元素的只读属性(如HTML文档的 <html> 元素)

https://developer.mozilla.org/zh-CN/docs/Web/API/Document/documentElement

posted @ 2019-07-22 11:33  路过的甲同学  阅读(262)  评论(0)    收藏  举报