javascript - $(window).height() is giving same value as $(document).height() -
as found on web $(window).height()
gives unit less pixel value of browser view-port height and, $(document).height()
gives unit less pixel value of actual document height
and if document height less window height $(document).height()
result in window height..
in case have document 36px of height..
when check $(window).height()
, $(document).height()
giving same result 36..
can explain what's wrong browser..?
nothing wrong browser.
the document might larger window can visibly see (the actual stuff can fit within premises of monitor).
if resolution of monitor 1024 x 768, actual document taller in size, let's 4000px, output value of $(window).height() 768px while $(document).height() 4000px, despite fact @ each moment can see 768px (in fact, see less, because need take account browser takes space well)
your largest element 36px in height, both window , document scaled size, despite fact might seeing lots of white space below.
Comments
Post a Comment