Mobile Website: Orientation change from portrait to horizontal

ぐ巨炮叔叔 提交于 2019-12-04 18:25:26

This functionality is present on iPhone because of the way the viewport works. Here is how to disabled it on all devices and thus creating the same user experience.

If you set your viewport to this:

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0," />

then it will prevent the iPhone from "re-zooming" back to device-width. This ALSO disables zoom entirely though. Don't have a better solution at this point.

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