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

前端 未结 7 2068
渐次进展
渐次进展 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:46

    Look at your HTML souce code. The first line should be <!DOCTYPE html> and you have <style> tag instead.

    So it seems that your document is running in Quirks Mode and jQuery can't calculate correct window dimensions.

    0 讨论(0)
提交回复
热议问题