[英]How to changes all css values at once that are set to rem based on 14px base size as new base size is 10px
I have a css file with 14px base size for rem.我有一个 css 文件,rem 的基本大小为 14px。 I want to make base size 10px and then change all css values according to that.
我想将基本尺寸设为 10px,然后据此更改所有 css 值。
you can try this...你可以试试这个...
:root {
font-size: 10px;
}
By default, 1 rem is equal to 14px I think.默认情况下,我认为 1 rem 等于 14px。 Now, 1rem is equal to 10px.
现在,1rem 等于 10px。
you can use您可以使用
html {
font-size: 10px;
}
and also can use也可以使用
:root{
font-size: 10px;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.