-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
38 lines (37 loc) · 1.07 KB
/
index.html
File metadata and controls
38 lines (37 loc) · 1.07 KB
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
37
38
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=4, minimum-scale=1.0">
<title>壹基因社区</title>
<link rel="stylesheet" type="text/css" href="src/assets/css/common.css"/>
<link rel="stylesheet" href="node_modules/mint-ui/lib/style.css">
</head>
<body>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
<script src="src/assets/js/ajaxupload.3.9.js"></script>
<script>
//rem 样式适应
$(function(){
var t;
w();
window.addEventListener("resize", function() {
clearTimeout(t);
t = setTimeout(w, 300)
}, false);
})
function w() {
var r = document.documentElement;
var a = r.getBoundingClientRect().width;
if (a > 750 ){
a = 750;
}
//750/w = 100/font-size
rem = a / 7.5;
r.style.fontSize = rem + "px"
}
</script>
</html>