方法1:

rem与px的转化
方法2:
(function(win,doc){
function change(){
doc.documentElement.style.fontSize = 100*doc.documentElement.clientWidth/375+‘px’;
}
change();
win.addEventListener(‘resize’,change,false);
})(window,document);
rem与px的转化

相关文章: