js获取元素的宽,包括边框padding
document.getElementById('aa').offsetWidth
获取页面的宽度
document.documentElement.clientWidth
获取元素距离页面顶部高度
document.getElementById('aa').offsetTop
混合模式或标准模式获取滚动条滚动高度
document.body.scrollTop || document.documentElement.scrollTop
混合模式或标准模式获取窗口高度
document.body.clientHeight || document.documentElement.clientHeight
jquery获取元素宽度
$("aa").outerWidth()
窗口的宽度
$(window).width()
元素距离顶部高度
$("aa").offset().top
滚动条滚动高度
$(window).scrollTop()
获取窗口高度
$(window).height()