var docEl = document.documentElement,resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize';
var clientWidth = docEl.clientWidth;
if(clientWidth>=750){
docEl.style.fontSize = '100px';
}
else{
docEl.style.fontSize = 100 * (clientWidth / 750) + 'px';
}
rem适配
猜你喜欢
转载自www.cnblogs.com/SunShineM/p/9060802.html
今日推荐
周排行