rem 响应 js函数时间:2023-03-09 04:59:32 size();window.onresize = function(){ size();}function size(){ var htnl_o=document.getElementsByTagName("html")[0]; htnl_o.style.fontSize = window.innerWidth/375*20 + "px"; console.log(htnl_o.style.fontSize);}