关于css px与rem的转换关系
浏览器默认的字号为16px,因此px与rem之间的转换关系如下所示:
|
px
|
rem
|
————————
|
12
| 12/16 = .75
|
|
14
| 14/16 = .875
|
|
16
| 16/16 = 1
|
|
18
| 18/16 = 1.125 |
|
20
| 20/16 = 1.25
|
|
24
| 24/16 =
浏览器默认的字号为16px,因此px与rem之间的转换关系如下所示:
|
px
|
rem
|
————————
|
12
| 12/16 = .75
|
|
14
| 14/16 = .875
|
|
16
| 16/16 = 1
|
|
18
| 18/16 = 1.125 |
|
20
| 20/16 = 1.25
|
|
24
| 24/16 =