-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex02.html
57 lines (54 loc) · 1.13 KB
/
index02.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>验真结果</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
outline: 0;
-webkit-tap-highlight-color: transparent;
}
body,
html {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
body {
max-width: 1080px;
overflow-x: hidden;
margin: 0 auto !important;
}
.demo_case {
width: 100%;
}
img {
width: 10rem
}
</style>
</head>
<body>
<div class="demo_case">
<img src='./M/0.png' />
</div>
<script>
!(function (w, d) {
function setFontSize() {
var clientWidth = document.documentElement.clientWidth;
if (clientWidth >= 1080) {
clientWidth = 1080;
}
document.documentElement.style.fontSize = (clientWidth / 10) + 'px';
document.body.style.fontSize = 16 + 'px';
}
setFontSize();
w.addEventListener('resize', setFontSize);
})(window, document)
</script>
</body>
</html>