forked from gavin103/design-patterns-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (47 loc) · 1.02 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<style>
div {
justify-content: center;
display: flex;
}
div span {
height: 50px;
width: 50px;
font-size: 30px;
line-height: 50px;
text-align: center;
border: 1px solid gray;
margin: 0 5px;
border-radius: 4px;
}
.active {
background-color: gray;
color: white;
}
</style>
<body>
<div id="app">
<span class="active">0</span>
<span>1</span>
<span>2</span>
<span>3</span>
<span>4</span>
<span>5</span>
<span>6</span>
<span>7</span>
<span>8</span>
<span>9</span>
</div>
</body>
<!-- 模块化开发,需要在script标签中加入type="module" -->
<script src="./inputmanager.js" type="module"></script>
<script src="./render.js" type="module"></script>
<script src="./renderwithalert.js" type="module"></script>
<script src="./index.js" type="module"></script>
</html>