-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
36 lines (30 loc) · 1.18 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- <meta name="viewport" content="width=device-width,initial-scale=1.0"> -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="https://cdn.bootcss.com/material-design-icons/3.0.1/iconfont/material-icons.css">
<link rel="stylesheet" href="https://at.alicdn.com/t/font_1294769_gbx2b7bnbw.css">
<link rel="stylesheet" href="https://at.alicdn.com/t/font_1372575_c3p08q2n4jf.css">
<title>muse-ui</title>
</head>
<body>
<div id="app"></div>
<script>
//得到手机屏幕的宽度
let htmlWidth = document.documentElement.clientWidth || document.body.clientWidth;
//得到html的Dom元素
let htmlDom = document.getElementsByTagName('html')[0];
if (htmlWidth > 750) { htmlWidth = 750 }
//设置根元素字体大小
htmlDom.style.fontSize = htmlWidth / 20 + 'px';
mui.init({
keyEventBind: {
backbutton: true //关闭back按键监听
}
});
</script>
<!-- built files will be auto injected -->
</body>
</html>