jquery获取页面相关尺寸

$(windows).width();获取页面可视宽度

$(windows).height();获取页面可视高度

$(document).height();获取页面内容的总高度

$(document).scrollTop();获取页面滚动条的垂直偏移

原文地址:https://www.cnblogs.com/xiaozong/p/5128547.html