美文网首页
手机端 index.html

手机端 index.html

作者: wlianfu | 来源:发表于2018-07-28 05:30 被阅读35次
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
    <meta name="theme-color" content="#000000">
    <meta name="renderer" content="webkit">
    <meta name="google" content="notranslate">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Sill</title>
    <link rel="manifest" href="%PUBLIC_URL%/manifest.json">
    <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <script src="https://as.alipayobjects.com/g/component/fastclick/1.0.6/fastclick.js"></script>
    <script>
      if ('addEventListener' in document) {
        document.addEventListener('DOMContentLoaded', function() {
          FastClick.attach(document.body);
        }, false);
      }
      if(!window.Promise) {
        document.writeln('<script src="https://as.alipayobjects.com/g/component/es6-promise/3.2.2/es6-promise.min.js"'+'>'+'<'+'/'+'script>');
      }
    </script>
  </head>
  <body>
    <div id="root"></div>
    <!-- <script>
      // 字体自适应
      (function flexible(window, document) {
        function setBodyFontSize () {
          if (document.body) {
            let bodyWidth = document.body.clientWidth;
            if (bodyWidth > 460) bodyWidth = 460;
            document.body.style.fontSize = bodyWidth * 4/100 + 'px';
          } else {
            document.addEventListener('DOMContentLoaded', setBodyFontSize);
          }
        }
        setBodyFontSize();

        window.addEventListener('resize', setBodyFontSize);
      })(window, document);
    </script> -->
  </body>
</html>

相关文章

网友评论

      本文标题:手机端 index.html

      本文链接:https://www.haomeiwen.com/subject/sevnmftx.html