body{font-size:0.6rem;}
<script> //使用rem策略,不断更新html的fontsize (function(){ function sizeHtml(){ window.mtSizeBase = $(window).width()/16; window.mtSizeBase = window.mtSizeBase>45?45:window.mtSizeBase; $("html").css("font-size",window.mtSizeBase+"px"); } sizeHtml(); $(window).resize(function(){ setTimeout(function(){ sizeHtml(); },300); }); })(); </script>