已采纳回答 / colblack
可以借助sass,less这些css预处理器来进行转换,https://www.w3cplus.com/preprocessor/sass-px-to-rem-with-mixin-and-function.html
2018-01-28