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/}
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/}