jQuery(window).height inaccurate

后端 未结 6 1712
挽巷
挽巷 2021-01-04 07:24

I\'m doing a simple test on $(window).height() and I\'m getting a value of 2602 on a screen resolution of 1366 x 768.

jQuery(document).ready(function($){

           


        
6条回答
  •  春和景丽
    2021-01-04 08:14

    Actually, this was a result of a hidden div element on my page. I had a thickbox link that would pull this hidden content. Removing this fixed the jQuery.width()!

    Surprising, not sure if helpful, but is the answer indeed.

提交回复
热议问题