窗口位置和像素比
// 移动到左上角window.moveTo(0,0)// 向下移动100pxwindow.moveBy(0,100)
窗口大小
outerWidth和outerHeight返回浏览器窗口大小
innerWidth和innerHeight返回可视区域大小(不包含浏览器边框和工具栏)
document.documentElement.clientWidth 和 document.documentElement.clientHeight返回页面可视区域的宽度和高度(渲染页面可视大小)
