移动端rem设置 此方法为1rem=100px 根据自己需要 调整 function font(){ document.documentElement.style.fontSize=document.documentElement.clientWidth/3.75+'px' } font() window.onresize=font;//视窗改变重新加载