From 8e182aa12fcba7ed25c2d65a6f5e1ae0b2160ab1 Mon Sep 17 00:00:00 2001 From: 徐旺旺 <11530253@qq.com> Date: 星期四, 20 五月 2021 15:09:54 +0800 Subject: [PATCH] 装置区问题修复 --- public/index.html | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/public/index.html b/public/index.html index 6c18cb7..83a048b 100644 --- a/public/index.html +++ b/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> -- Gitblit v1.8.0