简体   繁体   English

我如何将我的网站缩放到120%,并将字体大小缩放到150%?

[英]how can i zoom in my web to 120%, and zoom the font-size to 150%?

in high-resolution, the components in my web seems a little small, i want to zoom in my web to 120% in high-resolution, what's more, also I need to expand all the fonts to the original 1.5 times. 在高分辨率下,我的网络中的组件似乎有点小,我想在高分辨率下将网络放大到120%,此外,我还需要将所有字体扩展到原始字体的1.5倍。

i set the css as following: 我将CSS设置如下:

{
zoom: 1.2;
}

在此处输入图片说明 i zoom the web to 1.2, and then i need to continune to zoom the font-size to 5/4, so at last the font-size will be 1.2*5/4=1.5. 我将Web缩放到1.2,然后需要继续将字体大小缩放到5/4,所以最后字体大小将是1.2 * 5/4 = 1.5。

how can i do it? 我该怎么做?

if i add the following style to every text, i think it's inefficient 。 如果我在每个文本中添加以下样式,则认为效率低下。

{font-size: 125%;}

so, is there any efficient way to zoom in the whole font-size in the web? 因此,是否有任何有效的方法来放大Web中的整个字体大小?

Try using 尝试使用

  body
  {
    transform: scale(1.2,1.2);
  }

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如果用户的系统字体大小增加,网页会变得太大(即字体大小:窗口建议的150%) - Web page is coming too large if user's system font size is increased (i.e. font-size: 150% as recommended by the windows) nexus 7上的大字体(如果在桌面上缩小/放大,效果相同) - Larger font-size on nexus 7 (same effect if I zoom out/in on desktop) 如何在CSS中正确添加字体大小? - How do I add font-size properly in my css? 如何通过<a href>放大 150% 的链接导航到 web 页面?</a> - How to navigate to a web page via <a href> link with 150% zoom in? 如何在Android上使用0号字体? - How can I get font-size 0 to work in Android? 如何在不增加父元素大小的情况下在悬停时增加文本字体大小 - How can I increase my texts font-size over hovering without increasing the parent elements size too 如何通知Mac OSX的“缩放”按钮有关网站的最佳适合大小 - How can I inform the Zoom button of Mac OSX about best fit size for a web site 如何给 class 字体大小为 150% 的第一个元素和该元素的第一行红色? - How to give the first element inside a class font-size of 150% and the first line of that element red? 当HTML代码中已经定义了字体大小时,是否可以相对调整字体大小? - Can I adjust the font-size relatively, when the font-size is already defined in the HTML-code? 如何在div中设置font-family和font-size? - How can I set the font-family & font-size inside of a div?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM