//REM自适应 _resize(); window.addEventListener('resize', _resize, false); function _resize() { var deviceWidth = document.documentElement.clientWidth; document.documentElement.style.fontSize = deviceWidth / 5.4 + 'px'; }
//REM自适应 _resize(); window.addEventListener('resize', _resize, false); function _resize() { var deviceWidth = document.documentElement.clientWidth; document.documentElement.style.fontSize = deviceWidth / 5.4 + 'px'; }