我正在读关于rem
units in CSS3的文章,我有点困惑。如果你使用rem
,你会继续使用em
还是会取代它?
例如:
.selector {
margin-bottom:24px;
margin-bottom:2.4rem;
font-size:16px;
font-size:1.6rem;
}
或
.selector {
margin-bottom:24px;
margin-bottom:2.4em;
margin-bottom:2.4rem;
}
我只是想弄清楚,是rem
取代了em
,还是它只是另一个单位。
https://stackoverflow.com/questions/8100940
复制相似问题