iPhone 4 ignoring viewport meta tag

纵饮孤独 提交于 2019-12-04 20:17:25

If you have Zoom enabled in the Accessibility settings (inside General), Safari seems to ignore the viewport meta (tested only on iPhone 4 on iOs 4).

You need to reload your page after changing the setting.

typo? use comma.

try this: <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>

Also, why use maximum-scale if you want the viewport to be fixed? If you use "width=device-width", the viewport will be different between iphone3 and iphone4.

You may try this one too: <meta name="viewport" content="width = (your page width), user-scalable = no"/>

please replace (your page width) with your site's width.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!