开发者

Is iPhone's Safari resolution treated differently than the rest of the device?

开发者 https://www.devze.com 2022-12-26 20:15 出处:网络
I have an image that is 480x270. In theory this should occupy all the space between the battery bar on top and the navigation bar at the bottom when the phone is rotated on to its side.However, inexpl

I have an image that is 480x270. In theory this should occupy all the space between the battery bar on top and the navigation bar at the bottom when the phone is rotated on to its side. However, inexplicably the image is displayed shrunken to where it barely occupies 1/2 the screen horizontally.

I thought perhaps the phone is shrinking the image fo开发者_如何转开发r some reason, so I just created a div that has its dimensions set to the same size as the image and nothing in it but a background color. The phone displays this rectangle of color in exactly the same dimensions as the graphic.

So, the question is, is Safari compensating in some way and displaying things in a reduced ratio, and if so, WHAT is that ratio?! (or am I just totally out of my mind?)


Check out viewport.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号