Shouldn't window.screen.width/height correspond to actual screen width/height?

前端 未结 4 1987
轻奢々
轻奢々 2020-12-18 06:45

Toying around with the WebKit browser in the new Kindle 3G, I noticed that window.screen.width and window.screen.height don\'t reflect the actual s

4条回答
  •  甜味超标
    2020-12-18 07:38

    It would seem that screen.availWidth and screen.width are both returning the availWidth all the time, on many mobile operating systems.

    I was unable to find any documentation on this however I did tested Android 2.2 and got the screen size minus the top menu bar exactly no matter what a requested.

提交回复
热议问题