专为 iPhone 制作的主页 - 尺寸
我正在尝试让我正在创建的主页在 iPhone 上看起来不错。但即使页面上的内容宽度只有 320px,在 iPhone 浏览器中页面仍然被放大得很远。您必须做什么才能让 Safari 以“真实”大小显示页面?
I'm trying to make a homepage I'm creating look good on the iphone. But even though the content on the page is only 320px in width, the page is still zoomed far out in the iphone browser. What must you do for safari to display the page in its "real" size?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在没有看到该页面的情况下,很难确切地说出您需要做什么,但是 Mobile Safari 支持解决此类问题的所有奇怪的小元标记都记录在此处:
https://developer.apple.com/library/archive/documentation/appleapplications/reference/safariwebcontent/UsingtheViewport/使用Viewport.html
和此处
https ://developer.apple.com/library/archive/documentation/appleapplications/Reference/SafariHTMLRef/Articles/MetaTags.html
It's tough to say exactly what you need to do without seeing the page, but all the weird little meta tags that Mobile Safari supports to address these sorts of issues are documented here:
https://developer.apple.com/library/archive/documentation/appleapplications/reference/safariwebcontent/UsingtheViewport/UsingtheViewport.html
and here
https://developer.apple.com/library/archive/documentation/appleapplications/Reference/SafariHTMLRef/Articles/MetaTags.html