css3 rem的计算

2016-05-27  本文已影响79人  贞贞姐

html {font-size: 62.5%;/10 ÷ 16 × 100% = 62.5%/}
body {font-size: 1.4rem;/1.4 × 10px = 14px /}
p { font-size: 1.8rem;/
2.4 × 10px = 24px
/}

上一篇 下一篇

猜你喜欢

热点阅读