function ready() {
                var u = navigator.userAgent;
                var winW = document.documentElement.clientWidth;
                if (!!!u.match(/AppleWebKit.*Mobile.*/)) {
                    winW = 414;
                    document.getElementsByClassName('wraper')[0].style.width = '' + winW + 'px';
                }
                document.documentElement.style.fontSize = winW / 7.5 + 'px';
            }
            ready();
            window.addEventListener("resize", ready, false);

 

相关文章:

  • 2022-01-05
  • 2021-12-18
  • 2022-12-23
  • 2021-12-08
  • 2022-02-18
  • 2022-01-12
  • 2021-06-08
  • 2021-08-28
猜你喜欢
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-11
相关资源
相似解决方案