问题
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