使用Jquery查找滚动的总高度

时间:2012-07-06 07:30:49

标签: javascript jquery

我需要JavaScript jQuery代码来查找文档的总滚动高度。

1 个答案:

答案 0 :(得分:1)

试试这个

$(document).ready(function(){
var documentHeight=$('html').height();//The entire page is within HTML tag so the page height would be the height of HTML's height. It would be the size of the entire scroll too.
});