xiaopanglian
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);

 

分类:

技术点:

相关文章:

  • 2021-10-19
  • 2021-11-14
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
  • 2022-02-11
  • 2021-12-14
猜你喜欢
  • 2021-12-14
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
相关资源
相似解决方案