盒子模型属性 ✅
屏幕分辨率的 总宽: window.screen.width; 屏幕分辨率的 总高: window.screen.height;
屏幕可用工作区 宽度:window.screen.availWidth; 屏幕可用工作区 高度: window.screen.availHeight;
浏览器距离窗口 TOP: window.screenTop; 浏览器距离窗口 Left: window.screenLeft;
指定盒子,可见区域宽:document.querySelector('body').clientWidth 指定盒子,可见区域高:document.querySelector('body').clientHeight
指定盒子,包括边框,可见区域宽:document.querySelector('body').offsetWidth 指定盒子,包括边框,可见区域高:document.querySelector('body').offsetHeight
指定盒子,正文全文,宽:document.querySelector('body').scrollWidth 指定盒子,正文全文,高:document.querySelector('body').scrollHeight
指定盒子,网页被卷去的,高:document.querySelector('body').scrollTop 指定盒子,网页被卷去的,左边距:document.querySelector('body').scrollLeft