jquery 获取 scrollHeight

著做权归做者全部。
商业转载请联系做者得到受权,非商业转载请注明出处。
做者:匿名用户
连接:http://www.zhihu.com/question/20985674/answer/16807177
来源:知乎

$(window).height(); //浏览器当前窗口可视区域高度
$(document).height(); //浏览器当前窗口文档的高度
$(document.body).height();//浏览器当前窗口文档body的高度
$(document.body).outerHeight(true);//浏览器当前窗口文档body的总高度 包括border padding margin
$(window).width(); //浏览器当前窗口可视区域宽度
$(document).width();//浏览器当前窗口文档对象宽度
$(document.body).width();//浏览器当前窗口文档body的高度
$(document.body).outerWidth(true);//浏览器当前窗口文档body的总宽度 包括border padding margin浏览器

相关文章
相关标签/搜索