-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.html
59 lines (53 loc) · 1.67 KB
/
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
55
56
57
58
59
<!DOCTYPE html>
<html lang="en">
<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>石头剪刀布</title>
<link rel="stylesheet" href="./game.css">
</head>
<body>
<div class="main">
<p class="round"></p>
<div class="game">
<div class="left player">
<div class="gesture">
<span>?</span>
</div>
<p>梅西</p>
<p class="messi_win">胜:0 | 负 :0</p>
</div>
<div class="right player">
<div class="gesture">
<span>?</span>
</div>
<p>俺</p>
<p class="my_win">胜:0 | 负 :0</p>
</div>
</div>
<div class="result">
<span></span>
</div>
<dialog id="select-dialog">
<form action="">
<p>请选择你要出的手势
<select name="gesture" id="gesture-select">
<option value="rock">石头</option>
<option value="scissor">剪刀</option>
<option value="paper">布</option>
</select>
</p>
<p class="btn1">
<button id="btn1" type="button">确定</button>
</p>
</form>
</dialog>
<div class="btn2">
<button id="btn2">开始下一回合</button>
</div>
<img src="" alt="">
</div>
<script src="./index.js"></script>
</body>
</html>