Thinking of the 'zoom' in responsive design

十年热恋 提交于 2020-01-13 11:45:06

问题


I am trying to do a responsive design with using HTML and CSS, here is my problem:

If you only resize the window, the layout fits and if you only zoom, layout fits again, I have no problem with it, but if you zoom when the window is resized, layout breaks a little.

Is it important to find a solution about this? I have no problem with 200%, 300% levels of zoom, mostly 400% or 500% make some problems to me.


回答1:


In general, a responsive layout shouldn't need to be zoomed because it fits the device/browser window and has been designed to be "finger-friendly". To help with that, you can use this viewport to stop users from zooming:

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


来源:https://stackoverflow.com/questions/18447604/thinking-of-the-zoom-in-responsive-design

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