-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.html
54 lines (53 loc) · 939 Bytes
/
game.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.box div img{
margin: 0px;
padding: 0px;
}
.wall{
width: 50px;
height: 50px;
background: red;
position: absolute;
left: 0px;
top: 0px;
}
.box{
width: 100%;
height: 100%;
background:lightblue;
position: relative;
}
.gameover{
width: 200px;
height: 100px;
background-color: grey;
position: fixed;
left: 50%;
top: 50%;
margin-left: -100px;
margin-top: -75px;
z-index: 10;
display: none;
color: white;
font-size: 20px;
/* line-height: 100px; */
text-align: center;
}
.mary{
/* transition: 1s; */
}
/* 向加一个背景层使页面变灰 */
</style>
</head>
<body>
<div class="box">
<div class="gameover">游戏结束!😤</b><div class="goldcount">金币总数为0</div></div>
</div>
<script src="game.js"></script>
</body>
</html>