var clientWidth =document.documentElement.clientWidth;
document.getElementsByTagName("html")[0].style.fontSize = clientWidth / 750 * 100 + "px";
px转rem
最新推荐文章于 2020-06-16 20:27:04 发布
var clientWidth =document.documentElement.clientWidth;
document.getElementsByTagName("html")[0].style.fontSize = clientWidth / 750 * 100 + "px";