-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.html
73 lines (60 loc) · 2.37 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html> <!-- 文档声明标签 -->
<html lang="zh-CN">
<!-- lang用来说明语言 zh-CN是中文 -->
<head>
<meta charset="UTF-8"> <!-- 字符集 编码方式 -->
<link rel="icon" href="catfootprint.ico" type="image/x-icon">
<meta name="description" content="This web is created with the aim of learning">
<title>WYX的网站2.0</title>
<link href="styles/style1.css" rel="stylesheet">
</head>
<body>
<nav>
<!-- 导航栏 -->
<ul>
<li class="mainpage"><a href="index.html">主页</a></li>
<li class="minigame"><a href="game.html">游戏</a></li>
<li class="myProject"><a href="myproject.html">项目</a></li>
<li class="aboutus"><a href="aboutus.html">关于</a></li>
</ul>
<form>
<input type="search" name="q" placeholder="要搜索的内容">
<!--搜索栏-->
<input type="submit" value="搜索">
</form>
</nav>
<main>
<article>
<h2>猜数字游戏</h2>
<p>我刚才随机选定了一个100以内的自然数。看你能否在 10 次以内猜中它。每次我都会告诉你所猜的结果是高了还是低了。</p>
<div class="form">
<label for="guessField">请猜数: </label>
<input type="text" id="guessField" class="guessField">
<input type="submit" value="确定" class="guessSubmit">
</div>
<div class="resultParas">
<!-- 这里起个名字方便后面重置里面的p标签 -->
<p class="guesses"></p>
<p class="lastResult"></p>
<p class="lowOrHi"></p>
</div>
<script src="scripts/mygame.js" defer></script>
</article>
<!-- 侧边栏-->
<!-- <aside>
<h2>相关链接</h2>
<ul>
<li><a href="#">axriv</a></li>
<li><a href="#">scir官网</a></li>
<li><a href="#">哈工大官网</a></li>
<li><a href="#">哈工大研究生院</a></li>
<li><a href="#">哈工大计算学部</a></li>
</ul>
</aside> -->
</main>
<!-- 页脚 -->
<footer>
<p>© 2020-2022 保留所有权利 | 待定ing ICP 备 待定ing 号 | 配色方案来自FireFox</p>
</footer>
</body>
</html>