Jquery $(window).height() function does not return actual window height

前端 未结 7 2118
渐次进展
渐次进展 2020-12-09 16:09

I have a page that I need to dynamically load ajax content when the user scrolls to the bottom. The problem is that JQuery is not returning the correct window height. I have

7条回答
  •  孤城傲影
    2020-12-09 16:21

    This is an old question but I recently struggled with not getting the correct window height in IE10 by a few pixels.

    I discovered that IE10 applies a 75% zoom by default and that screws the window and document measurements.

    So, if you're getting wrong width or height, make sure zoom is set to 100%.

提交回复
热议问题