-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (44 loc) · 1.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>俄罗斯方块</title>
<style>
html,
body {
display: flex;
justify-content: center;
align-content: flex-start;
flex-wrap: wrap;
width: 100%;
min-width: 100%;
height: 100%;
margin: 0;
overflow: hidden;
background: #000;
user-select: none;
}
canvas {
width: 40vh;
height: 80vh;
image-rendering: -moz-crisp-edges;
image-rendering: -webkit-crisp-edges;
image-rendering: pixelated;
image-rendering: crisp-edges;
border: 1px solid #fff;
}
h1 {
flex-basis: 100%;
color: #fff;
margin: 0 0 5px 0;
text-align: center;
}
</style>
</head>
<body>
<h1>0</h1>
<canvas></canvas>
<script src="./index.js"></script>
</body>
</html>