site zoom problem: not all of the components scaling as they should

雨燕双飞 提交于 2019-12-12 01:39:22

问题


I recently develop a site and I noticed that when I use the scroll zoom(ctrl+mouse wheel) on other sites it works great but on mine it has a strange behavior with not all of the components scaling as they should.

On the css file I used only percentages in order to keep resolutions/size problem to minimum...but I don't know if that has anything to do with the present problem.


回答1:


you have the width 100% on the css of the classes (for example images). This is your problem. Use width:auto; and will resize them too



来源:https://stackoverflow.com/questions/3431663/site-zoom-problem-not-all-of-the-components-scaling-as-they-should

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