-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path2048.html
40 lines (37 loc) · 1.6 KB
/
2048.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="target-densitydpi=320,width=640,user-scalable=no" charset="utf-8" http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>上官衍鹏——2048</title>
</head>
<link rel="stylesheet" href="./2048.css">
<body>
<strong>2048</strong>
<main>
<div class="main">
<div id="gameover">游戏结束了</div>
<div id="peace">暂停游戏,点击继续</div>
<div id="final"></div>
<div class="container" id="container">
<div class="item" id="item00"></div>
<div class="item" id="item01"></div>
<div class="item" id="item02"></div>
<div class="item" id="item03"></div>
<div class="item" id="item10"></div>
<div class="item" id="item11"></div>
<div class="item" id="item12"></div>
<div class="item" id="item13"></div>
<div class="item" id="item20"></div>
<div class="item" id="item21"></div>
<div class="item" id="item22"></div>
<div class="item" id="item23"></div>
<div class="item" id="item30"></div>
<div class="item" id="item31"></div>
<div class="item" id="item32"></div>
<div class="item" id="item33"></div>
</div><button id="btn">4*4游戏开始</button>
</div>
</main><p style="text-align: center;color:red" id="score">score</p><p style="text-align: center;">ps:还差计时模式和5*5没写完,都比较好写,已经留好参数,改了绑定事件即可</p>
</body>
<script src="./2048.js"></script>
</html>