Unwanted scaling on mobile devices

送分小仙女□ 提交于 2019-12-12 03:52:17

问题


Cant understand how to avoid scaling on mobile devices. It should work without any responsive rules like meta-viewport. Tried a lot of variants but the page initially loads magnified and becomes as wanted only after zooming out.

here is my case http://alardeem.ru/temp/test/index.html


回答1:


The following tag you use

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

tells a browser about initial scale only. If you add maximum scale info, it should work properly:

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0, minimal-ui">

Let me know if it works for you



来源:https://stackoverflow.com/questions/38313229/unwanted-scaling-on-mobile-devices

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