font-size:62.5% 在html 里面 style 设置 html font-size:20px
巴扎黑
巴扎黑 2016-11-07 15:58:43
0
1
974

在引入的css里面设置了 body {font-size:62.5%;}  在html 里面写 style html{font-size:20px;}  30px 是多少 rem? 这个怎么算

巴扎黑
巴扎黑

reply all(1)
phpcn_u29

font-size:62.5% === 10 px

比如 一个

标签 font-size: 1rem; 实际就是 10px.

这时候你把html的字体 font-size:20px ;

标签还是 font-size: 1rem; 实际就是 1 X 20 px.


Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!