iPhone全屏图片 [英] iPhone Full Screen Image
问题描述
如何在iPhone上全屏显示图像或部分页面?
How do I go about making an image or section of the page full screen on the iPhone?
我有一个480 x 320的图像,我想要在iPhone上全屏显示,但它必须在网页内,这样我才能将图像链接到上一页。
I have an image that is 480 x 320 and I want to pull that up full screen on the iPhone but it has to be within a webpage so that I can make the image a link back to the previous page.
目前如果我放弃空白页面上的图像,我在iPhone上打开它只是显示在左上角。
Currently if I drop the image on a blank page and I open it up on the iPhone it just shows up in the top left corner.
推荐答案
我请说在您的空白页面中设置视口元标记,以便Safari知道以正确的大小呈现页面。有关详细信息,请参阅此链接:
I'd say set the viewport meta tag in your blank page so Safari knows to render the page at the right size. For more information, see this link:
这篇关于iPhone全屏图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!