三种:offset客户端scrolloffset只读属性。width/height——显示的屏幕尺寸top/left——相对于定位的父元素客户端只读属性的绝对位置。width/height-offsetwithoutborder,不包括滚动条宽度top/left-padding外边缘和border外边缘之间的距离,通常是borderwidthscrollwidth/height-只读,有溢出的clienttop/leftofthecontent—--非只读,相对于父容器的滚动起始位置,修改值可以改变滚动位置演示代码见:https://codepen.io/jabbar/pen...additionalwindow.outerWidth/window.outerHeight-窗口外层的宽度和高度window.innerWidth/window.innerWidth-浏览器窗口视口的宽度和高度window.screen.width/window.screen.height-屏幕窗口的宽度和高度。screen.availWidth/window.screen.availHeight——屏幕的可用宽高window.screenTop/window.screenLeft——浏览器在屏幕上的位置参考:https://segmentfault.com/a/11...https://juejin.im/entry/59772…
