-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
108 lines (89 loc) · 2.3 KB
/
test.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>test</title>
</head>
<body>
<div id="demo"></div>
<style id="demo2"></style>
<div id="buttons">
<button id="btnPause">Pause</button>
<button id="btnPlay">Play</button>
<button id="btnSlow">Slow</button>
<button id="btnNormal">Normal</button>
<button id="btnFast">Fast</button>
</div>
<style>
* {
box-sizing: border-box;
}
*::before,
*::after {
box-sizing: border-box;
}
#buttons {
position: fixed;
right: 0;
top: 0;
z-index: 10;
display: flex;
flex-direction: column;
margin-top: 10px;
margin-right: 10px;
}
#buttons>button {
margin-bottom: 10px;
padding: 4px 8px;
}
#html {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 50vh;
}
#demo {
position: fixed;
height: 50vh;
top: 0;
left: 0;
width: 100%;
border: 1px solid red;
overflow-y: auto;
}
#demo::-webkit-scrollbar {
display: none;
}
#demo2 {
display: none;
}
</style>
<div id="html">
<div class="skin">
<div class="eye left"></div>
<div class="eye right"></div>
<div class="nose">
<div class="yuan"></div>
</div>
<div class="cheek left">
</div>
<div class="cheek right">
</div>
<div class="mouth">
<div class="up">
<div class="lip left"></div>
<div class="lip right"></div>
</div>
<div class="down">
<div class="yuan1">
<div class="yuan2"></div>
</div>
</div>
</div>
</div>
<script src="test.js" type="module"></script>
</body>
</html>