站点缩放问题:并非所有组件都按比例缩放 [英] site zoom problem: not all of the components scaling as they should
问题描述
我最近开发了一个站点,我注意到当我在其他站点上使用scroll zoom(ctrl + mouse wheel)时效果很好,但在我的站点上却出现了奇怪的行为,并非所有组件都按比例缩放. /p>
在css文件中,我仅使用百分比以将分辨率/大小问题保持在最低水平...但是我不知道这是否与当前问题有关.
您在类的CSS上具有100%的宽度(例如,图像).这是你的问题.使用宽度:自动;并且也会调整它们的大小
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.
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
这篇关于站点缩放问题:并非所有组件都按比例缩放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!