How to deal with zoom in responsive layouts?

混江龙づ霸主 提交于 2019-12-11 06:18:32

问题


How to deal with zoom in responsive layouts ?
All get messy when zooming this site : http://bostonglobe.com/
I loved the layout and responsive effects but sometimes my user will zoom content. Thanks


回答1:


Simply avoid fixed units and use percentage or em units for your elements.

Zoom is a useful feature browsers provide to users surfing your site, and it will mess up your text and layout to some extent anyway.

The best thing you can do is make sure your site is completely zoomable, not going against this feature.




回答2:


Its not designer fault, there is no way to detect browser zooming and change layout in responsive way. Detect Browser zoom level using javascript



来源:https://stackoverflow.com/questions/7403438/how-to-deal-with-zoom-in-responsive-layouts

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