Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道在字体大小属性方面, rem 单位在浏览器http://caniuse.com/#search=rem中很受欢迎。但是,我想知道其他属性,如填充、边距,甚至不常见的东西,如轮廓和字母间距。在上面使用 rem 是否安全?
是的。Rem 单位可用于任何允许常规长度值的地方。例外是 IE9-10 有一个错误,即 rem 值不能用于字体速记,但可以在单独的 font-size 属性中使用。