Anti-responsive styling for mobile browser

拟墨画扇 提交于 2019-12-13 04:49:20

问题


I have made a design for a website that is adapated for desktop visitors.

Naturally, for mobile visitors, the details get very small.

But I want to keep it like that, I don't want the mobile browser to try to zoom in on the website but retain the full width.

What is key to accomplish this?


回答1:


This should be what your looking for. Place it within the <head></head>

<meta name="viewport" content="width=1024, user-scalable=no">

set the content="" to whatever the size of the site is or what you would like it to be




回答2:


Include this line and set fixed width in your css not in percentage

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


来源:https://stackoverflow.com/questions/20192563/anti-responsive-styling-for-mobile-browser

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