Home >Web Front-end >HTML Tutorial >Problem with jquery getting page height_html/css_WEB-ITnose
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
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