11
This commit is contained in:
@@ -6,6 +6,24 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
||||
<script>
|
||||
fnResize();
|
||||
window.onresize = function() {
|
||||
fnResize();
|
||||
}
|
||||
|
||||
function fnResize() {
|
||||
var deviceWidth = document.documentElement.clientWidth || window.innerWidth;
|
||||
if (deviceWidth >= 750) {
|
||||
deviceWidth = 750;
|
||||
}
|
||||
if (deviceWidth <= 320) {
|
||||
deviceWidth = 320;
|
||||
}
|
||||
document.documentElement.style.fontSize = (deviceWidth / 75) + 'px';
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
|
||||
Reference in New Issue
Block a user