JS 窗口尺寸数据的获得
摘要:window.innerHeight(innerWidth):表示可见区域的高度(宽度),如果底部(右侧)有滚动条,会把底部(右侧)滚动条的高度(宽度)计算进去,此方法适用于标准浏览器及IE9+。 document.documentElement.clientHeight(clientWidth):
阅读全文
posted @ 2020-03-02 01:16
posted @ 2020-03-02 01:16
posted @ 2020-01-07 21:47