开发者

Get web page height through jQuery

开发者 https://www.devze.com 2023-02-05 14:14 出处:网络
How can I get the height of viewable web page of browser with jquery? I have tried $(window).height() but 开发者_StackOverflow中文版it did not return accurate result.. Thanks..From the jQuery document

How can I get the height of viewable web page of browser with jquery? I have tried $(window).height() but 开发者_StackOverflow中文版it did not return accurate result.. Thanks..


From the jQuery documentation:

$(window).height();   // returns height of browser viewport
$(document).height(); // returns height of HTML document


height=$(window).height();
0

精彩评论

暂无评论...
验证码 换一张
取 消