1.导航栏
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>作业1</title>
<style>
div{
width: 800px;
height: 40px;
border-width: 1px;
/* 元素本身 */
margin: auto;
border-color: black;
border-style: solid;
text-align: center;
line-height: 2.5;
background-color: black;
box-shadow: 10px 10px 10px gray;
border-radius: 15px;
}
span:hover{
background-color: red;
}
span{
/* 内联元素,宽度自动适应内容,需变性 */
display: inline-block;
color: white;
height: 40px;
width: 50px;
text-shadow: 10px 10px 10px gray;
}
</style>
</head>
<body>
<div>
<span><b>游戏1</b></span>
<span><b>游戏2</b></span>
<span><b>游戏3</b></span>
<span><b>游戏3</b></span>
<span><b>游戏4</b></span>
<span><b>游戏5</b></span>
<span><b>游戏6</b></span>
<span><b>游戏7</b></span>
<span><b>游戏8</b></span>
<span><b>游戏9</b></span>
</div>
</body>
</html>
![](https://img-blog.csdnimg.cn/direct/fa554017e85245f48642ad41a6620d6f.png)
2.页面1
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>作业2.1</title>
<style>
[class]{
position: relative;
left: 100px;
}
.text{
position: relative;
left: 240px;
}
[id]{
color: gray;
}
</style>
</head>
<body>
<table border="0px" width="1000px" height="420px" cellspacing="0px">
<tr>
<td colspan="2" height="60px"><img src="http://zswxyjw.yinghuaonline.com/znlykjdxswxy_jsxsd/framework/images/index/index_02.png" alt="" height="60px">
</td>
<!-- <td></td> -->
</tr>
<tr >
<td width="500px" height="300px"><img src="./图片/涉外.png" alt="" width="500px" height="300px"></td>
<td style="background-image: url(./图片/中南.png); text-align: center;">
<big><big>用户登入</big></big><br>
<form action="http://zswxyjw.yinghuaonline.com/znlykjdxswxy_jsxsd/framework/xsMain.jsp" method="post">
<p>用户名: <input type="text" ></p>
<p>密码: <input type="password" name="password" id="password" value="" required></p>
<p>
<button type="submit" style="background-image: url(./图片/按钮.png); background-size: contain; width: 40px; height: 40px;"" class="submit"></button>
<button type="submit" style="background-image: url(./图片/问号.png); background-size: contain; width: 40px; height: 40px;"" class="submit"></button>
<!--
background-size: contain;
按图片自身比例适应
-->
</form>
</p>
</td>
</tr>
<tr>
<td id="">湖南强智科技发展有限公司 版权所有</td>
<td class="text" id="">隐私声明|设为首页</td>
</tr>
</table>
</body>
</html>
3.页面2
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>作业2.2</title>
<style>
[class]{
border-width: 0px;
border-color: black;
border-style: solid;
line-height: 2.5;
background-color: rgb(46, 90, 201);
}
span:hover{
background-color: rgb(65, 135, 216);
}
span{
display: inline-block;
color: white;
position: relative;
left: 80px;
}
/* [id]{
position: relative;
left: 400px;
} */
p{
color: gray;
position: relative;
left: 350px;
}
</style>
</head>
<body>
<div id="">
<img src="http://zswxyjw.yinghuaonline.com/znlykjdxswxy_jsxsd/framework/images/index/index_02.png" alt="">
</div>
<div class="">
<span><b>我的桌面</b></span>
<span><b>学籍成绩</b></span>
<span><b>培养管理</b></span>
<span><b>考试报名</b></span>
<span><b>教学评价</b></span>
</div><br>
<div id="">
<table border="0px" width="1000px" height="600px" >
<tr>
<td rowspan="2" colspan="2"><img src="./图片/个人信息.png" alt=""></td>
<!-- <td></td> -->
<td rowspan="2"><img src="./图片/选课.png" alt=""></td>
<td><img src="./图片/评教.png" alt=""></td>
<td colspan="2"><img src="./图片/留言.png" alt=""></td>
<!-- <td></td> -->
</tr>
<tr>
<!-- <td></td>
<td></td> -->
<!-- <td></td> -->
<td><img src="./图片/培养.png" alt=""></td>
<td colspan="2"><img src="./图片/公告.png" alt=""></td>
<!-- <td></td> -->
</tr>
<tr>
<td><img src="./图片/成绩.png" alt=""></td>
<td><img src="./图片/周历.png" alt=""></td>
<td><img src="./图片/计划.png" alt=""></td>
<td><img src="./图片/查询.png" alt=""></td>
<td><img src="./图片/卡片.png" alt=""></td>
<td><img src="./图片/密码.png" alt=""></td>
</tr>
</table>
</div><hr>
<p>Copyright (C) 湖南强智科技发展有限公司 All Rights Reserved 湘ICP 备12010071号</p>
</body>
</html>
4.页面3
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>作业2.3</title>
<style>
[class]{
border-width: 0px;
border-color: black;
border-style: solid;
line-height: 2.5;
background-color: rgb(46, 90, 201);
}
span:hover{
background-color: rgb(65, 135, 216);
}
span{
display: inline-block;
color: white;
position: relative;
left: 80px;
}
li{
list-style-type: none;
list-style-image: url(./图片/图标.png);
}
#ab{
color: blue;
}
#abc{
color: red;
position: static;
}
#a{
color: red;
}
#b{
position: relative;
bottom: 40px;
right: 180px;
}
#c{
position: relative;
bottom: 40px;
}
#d{
position: relative;
right: 10px;
}
</style>
</head>
<body>
<div>
<img src="http://zswxyjw.yinghuaonline.com/znlykjdxswxy_jsxsd/framework/images/index/index_02.png" alt="">
</div>
<div class="">
<span><b>我的桌面</b></span>
<span><b>学籍成绩</b></span>
<span><b>培养管理</b></span>
<span><b>考试报名</b></span>
<span><b>教学评价</b></span>
</div>
<div>
<table border="1px" cellspacing="0px" style="border-color: rgb(48, 174, 224);">
<tr>
<td width="200px">
<ul>
<li><b>公告留言</b></li><small>已收公告<br>已收留言</small><hr>
<li><b>个人信息</b></li><small>修改个人信息<br><p>修改密码</p></small><hr>
<li><b>教学周历</b></li><small>教学周历查看</small><hr>
<li><b>监护人信息</b></li><small>监护人信息填写</small>
</ul>
</td>
<td width="700px" style="text-align: center;">
<p id="b"><a href=""><b id="ab"><small>首页</small></b></a><b> >> 个人信息 >> 修改密码</b></p>
<div id="c">
<form action="">
<small id="d">登录账号:</small><input type="text" name="" id="d" value="2023013214" disabled><br>
<small>旧密码:</small><input type="password" name="" id="" required><span id="abc"><small>*必填</small></span><br>
<small>新密码:</small><input type="password" name="" id=""><span id="abc"><small>*必填</small></span><br>
<small>确定新密码:</small><input type="password" name="" id=""><span id="abc"><small>*必填</small></span><br>
<p> <button type="submit">保存</button> <button type="reset">重置</button></p>
<p id="a"><small>密码长度8-16位且必须包含数字、大小写字母与特殊字符</small></p>
</form>
</div>
</td>
</tr>
</table>
</div>
</body>
</html>
![](https://img-blog.csdnimg.cn/direct/2d9da81b7c4743e194b3a6214fce2276.png)