How to make everything bigger on the page?

天涯浪子 提交于 2019-12-24 14:35:05

问题


If I open my web site in a browser and pres Ctrl + several time everything gets bigged and the site looks better to me.

Can I achieve the same effect by putting something in the HTML code (so that the users see everything bigger by default, without pressing Ctrl+)?

I want to make everything bigger (text and images).


回答1:


If you want to achieve the same effect that the browser zoom, you can use the CSS zoom property (and the transform scale(x) property for Firefox) on the body :

body {
    -moz-transform: scale(1.3); /* for Firefox, default 1*/
    zoom:130%; /* For Chrome, IE, default 100%*/
}

But, I'm not sure if this is a good solution. If you think your website looks better when zoomed in, then there is a real design issue somewhere. I would suggest you to rework the design first.



来源:https://stackoverflow.com/questions/28605730/how-to-make-everything-bigger-on-the-page

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