<meta name="viewport" content="width=device-width, initial-scale=1">
<script>(function(){var w=window.screen.width,s=w/750,u=navigator.userAgent,m='<meta name="viewport" content="width=750,';if(/android (\d+\.\d+)/i.test(u)){if(parseFloat(RegExp.$1>2.3)){m+="minimum-scale = "+s+", maximum-scale = "+s+","}}else{m+="user-scalable=no,"}m+='target-densitydpi=device-dpi">';document.write(m)}());</script>
不设置viewport,在head里面用js生成,在安卓内流里面会有一些问题
使用自定义字体,font-face,然后js判断机型
用的少,用rem是比较好,但是比较麻烦,如果不根据屏幕尺寸来调节html的font-size,这对rem没啥用,rem一般要配合@media用