[英]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.