Home >Web Front-end >HTML Tutorial >Problem with jquery getting page height_html/css_WEB-ITnose

Problem with jquery getting page height_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:09:321149browse

var h=$(document).height();
alert(h);//Why the result is 77, the same is true for $(window).height()
What’s going on? Ah, the page height must be more than 77


Reply to the discussion (solution)

I tested it with this code and there was no error. It was not full screen. 675 Full screen is 800 My resolution is 1280*800

Did you adjust the window to a small size? . . . Haha

Have you made the window very small?

window.screen.height

Have you made the window very small? . . . Haha

It’s a browser compatibility issue. It works fine in IE, but it’s wrong in firefox

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn