派生自 wuyushui/SewerAndRainNetwork

陈泽平
2021-05-31 3bfe1e5779946a5a3c09621219c0890e8c286868
public/index.html
@@ -7,7 +7,7 @@
      <meta name="viewport" content="width=device-width">
      <meta http-equiv="X-UA-Compatible" content="IE=11">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title><%= htmlWebpackPlugin.options.title %></title>
    <title>中国石化环保一张图</title>
  </head>
  <body>
    <noscript>
@@ -15,5 +15,16 @@
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
    <script type="text/javascript">
        (function(){
            change();
            function change(){
                //html的 font-size 的大小尺寸
                document.documentElement.style.fontSize = document.documentElement.clientWidth/12 +'px';
            }
            /* 监听窗口大小发生改变时*/
            window.addEventListener('resize',change,false);
        })();
    </script>
  </body>
</html>