收集并整理JS中容器的大小、位置、距离和其他属性。
实际宽度element.clientwidth /元素,没有边界对element.clientheight / /元素的实际高度,没有边界
实际宽度element.offsetwidth /元素,加上边框
对element.offsetheight / /元素的实际高度,再加上边框
这是element.scrollwidth / /很多,我测试应该是实际的元素宽度滚动条的宽度
这是element.scrollheight / /很多,我测试应该在滚动条的元素的实际高度
相对element.offsetleft / /父对象的距离,如果IE的位置设置为相对的,是相对于距离的窗口
相对element.offsettop / /父对象的距离,如果IE的位置设置为相对的,是相对于距离的窗口
window.screenleft / /当前窗口屏幕的距离仅为IE的距离
window.screenx / /当前窗口屏幕的距离不是IE的距离
当前窗口的大小(在window.innerwidth /不是IE)
window.outerwidth / /当前窗口的大小(外)不是IE
屏幕分辨率的宽 / /当前屏幕分辨率
window.screen.availwidth / /当前屏幕分辨率