1.导航栏
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
div{
width: 800px;
height: 30px;
background-color: rgb(28, 38, 73);
margin: auto;
border-radius: 10px;
text-shadow: 5px 5px 5px gray;
color: aliceblue;
box-shadow: 0px 5px gray;
}
ul{
text-align: center;
margin: auto;
}
li{
width: 46px;
list-style: none;
display: inline-block;
}
li:hover{
background-color: red;
}
</style>
</head>
<body>
<div>
<ul>
<li>游戏1</li>
<li>游戏2</li>
<li>游戏3</li>
<li>游戏4</li>
<li>游戏5</li>
<li>游戏6</li>
<li>游戏7</li>
<li>游戏8</li>
<li>游戏9</li>
</ul>
</div>
</body>
</html>
运行截屏
2.编写三个网页
1简写的某学校主页
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.head{
background-color: rgb(9, 88, 214);
height: 160px;
}
.A{
margin-top: 38px;
margin-left: 130px;
}
span{
color: white;
position: relative;
left: 230px;
bottom: 80px;
}
.B{
position: relative;
right: 53px;
bottom: 45px;
}
button{
width: 35px;
height: 35px;
margin: 0px;
padding: 0px;
border: 0px;
position: relative;
bottom: 27px;
right: 58px;
}
.body{
background-color: white;
width: 1280px;
height: 40px;
margin-top: 5px;
}
ul{
float: left;
margin-left: 180px;
}
.o > li{
float: left;
list-style: none;
width: 130px;
height: 20px;
text-align: center;
font-size: large;
position: relative;
bottom: 8px;
}
.foot{
margin: 0px;
height: 400px;
width: 100%;
}
.f1{
margin-left: 100px;
}
.f1,.f2,.f3{
width: 420px;
height: 300px;
float: left;
}
li{
width: 500px;
}
.item{
width: 100%;
height: 160px;
background-color: rgb(0, 84, 203);
color: white;
position: relative;
top: 80px;
}
.item1,.item2{
display: inline-block;
}
.item1{
font-size: 14px;
position: relative;
bottom: 200px;
left: 110px;
}
.item2{
text-align: center;
position: relative;
left: 530px;
bottom: 160px;
}
</style>
</head>
<body>
<div class="head">
<img src="./logo_jwc.png" alt="" class="A">
<span>学院首页 | 加入收藏</span>
<input type="text" placeholder="SEAECH" class="B" style="width: 220px;height: 40px;">
<button><label><img src="c:\Users\A\Pictures\Screenshots\png1.png" alt=""></label></button>
</div>
<div class="body">
<ul class="o">
<li><img src="c:\Users\A\Desktop\home.png" alt="" height="20px"></li>
<li>规章制度</li>
<li>通知公告</li>
<li>新闻动态</li>
<li>质量监控</li>
<li>教务系统</li>
<li>教学改革</li>
<li>教学简报</li>
</ul>
</div>
<div class="foot">
<img src="./W020190530389886662813.jpg" alt="" width="100%" max-width="100%" height="260px">
<div class="f1"><h1><small>新闻动态</small></h1>
<li style="list-style: none;"><small>教务处组织召开2024版本科人才培养方案修订工作推进</small></li>
</div>
<div class="f2"><h1><small>通知公告</small></h1>
<li>关于2024年学院教师数字化教学竞赛结果的公示</li>
<li>2024届校级优秀毕业设计(论文)推荐名册</li>
<li>关于开展2024年院级课程思政教学竞赛的通知</li>
<li>2024年“专升本”考试准考证打印及考试须知</li>
<li>关于2024年春季学期重修安排的通知</li>
</div>
<div class="f3"><h1><small>下载中心</small></h1>
<li>教务处邮箱</li>
<li>2023年6月全国大学生四六级成绩</li>
<li>中南林业科技大学涉外学院免修课程申请表</li>
<li>2022年12月大学英语四六级成绩</li>
<li>2022年6月大学英语四六级成绩</li>
</div>
</div>
<div class="item">
<div class="item1">
<p>
Copyright ©2011 - 2019 中南林业科技大学涉外学院 域名备案信息: 湘教QS4-201405-010072 湘ICP备09017705号
<br>
<br>
地址:湖南省长沙市望城区丁字湾街道 邮箱: znlswdzb@163.com
</p>
</div>
<div class="item2">
<img src="c:\Users\A\Desktop\weChat.jpg" alt="">
<p>官方微信</p>
</div>
</div>
</body>
</html>
运行截屏
2登录界面
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.head{
text-align: center;
margin-top: 60px;
margin-right: 750px;
}
.body{
width: 1900px;
height: 350px;
background: url(./bgtp.gif) no-repeat ;
background-size: 1500px 350px;
position: relative;
}
.a{
position: absolute;
top: 50px;
left: 800px;
}
span{
position: absolute;
left: 800px;
}
.foot{
position: relative;
left: 200px;
color: gray;
}
.b{
position: absolute;
top: 226px;
left: 980px;
}
</style>
</head>
<body>
<div class="head">
<img src="./index_02.png" alt="">
</div>
<div class="body">
<div class="a">
<br>
<big><strong>用户登录</strong></big>
<br><br>
用户名: <input type="usename">
<br><br>
密 码: <input type="password">
</div>
<div class="b">
<img src="c:\Users\A\Desktop\dlau.gif" alt="">
<img src="c:\Users\A\Desktop\dlau1.gif" alt="">
</div>
</div>
<div class="foot">湖南强智科技发展有限公司 版权所有
<span>隐私声明|设为首页</span>
</div>
</body>
</html>
运行截屏
用户界面
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
li{
margin-right: 15px;
display: inline-block;
}
.b{
float: left;
border: 1px solid rgb(0, 171, 213);
background-color: azure;
list-style: none;
position: relative;
left: 1000px;
margin-top: 0px;
text-align: center;
}
span{
position: relative;
left: 110px;
}
.c{
background-color: rgb(106, 188, 255);
width: 100%;
height: 30px;
}
.d{
list-style: none;
margin-left: 310px;
}
.box{
display: grid;
width: 900px;
grid-template-columns: repeat(6,1fr);
height: 400px;
grid-template-rows: repeat(3,1fr);
grid-gap: 5px;
margin-left: 350px;
grid-template-areas:
"One One Two Three Four Four"
"One One Two Five Six Six "
"Seven Eight Nine Ten Eleven Twelve"
;
}
.box > *{
background-color: rgb(0, 153, 255);
text-align: center;
color: white;
font-size: 14px;
}
/* 引用地图 */
One{grid-area: One;}
Two{grid-area: Two;}
Three{grid-area: Three;}
Four{grid-area: Four;}
Five{grid-area: Five;}
Six{grid-area: Six;}
Seven{grid-area: Seven;}
Eight{grid-area: Eight;}
Nine{grid-area: Nine;}
Ten{grid-area: Ten;}
Eleven{grid-area: Eleven;}
Twelve{grid-area: Twelve;}
.e{
border-top: 1px solid gray;
width: 1000px;
margin-left: 300px;
color: gray;
text-align: center;
}
p1{
position: relative;
top: 80px;
}
p2{
position: relative;
top: 80px;
}
p3{
position: relative;
top: 20px;
}
p4{
position: relative;
right: 80px;
top: 10px;
}
</style>
</head>
<body>
<div class="a">
<span><img src="c:\Users\A\Desktop\index_logo.gif" alt="" width="460px" height="60"></span>
<ul class="b">
<li><img src="c:\Users\A\Desktop\Nsb_top_p1.jpg" alt="" width="30px" height="30px"></li>
<li><img src="c:\Users\A\Desktop\Nsb_top_p1.jpg" alt="" width="30px" height="30px"></li>
<li><img src="c:\Users\A\Desktop\Nsb_top_p1.jpg" alt="" width="30px" height="30px"></li>
<li><img src="c:\Users\A\Desktop\Nsb_top_p1.jpg" alt="" width="30px" height="30px"></li>
</ul>
</div>
<div class="c">
<ul class="d">
<li title="首页">首页</li>
<li title="我的桌面">我的桌面</li>
<li title="学籍成绩">学籍成绩</li>
<li title="培养管理">培养管理</li>
<li title="考试报名">考试报名</li>
<li title="教学评价">教学评价</li>
</ul>
</div>
<br>
<br>
<div class="box">
<One><p1><img src="c:\Users\A\Desktop\tp1.png" alt=""><br>个人信息</p1></One>
<Two><p2><img src="c:\Users\A\Desktop\tp2.png" alt=""><br>选课中心</p2></Two>
<Three><p3><img src="c:\Users\A\Desktop\tp3.png" alt=""><br>学生评教</p3></Three>
<Four><p4><img src="c:\Users\A\Desktop\tp5.png" alt=""><br>已收留言</p4></Four>
<Five><p3><img src="c:\Users\A\Desktop\tp4.png" alt=""><br>培养方案</p3></Five>
<Six><p4><img src="c:\Users\A\Desktop\tp6.png" alt=""><br>已收公告</p4></Six>
<Seven><p3><img src="c:\Users\A\Desktop\tp7.png" alt=""><br>课程成绩查询</p3></Seven>
<Eight><p3><img src="c:\Users\A\Desktop\tp8.png" alt=""><br>教学周历</p3></Eight>
<Nine><p3><img src="c:\Users\A\Desktop\tp9.png" alt="" height="60px"><br>授课计划查询</p3></Nine>
<Ten><p3><img src="c:\Users\A\Desktop\tp10.png" alt="" height="60px"><br>未获得学分成绩查询</p3></Ten>
<Eleven><p3><img src="c:\Users\A\Desktop\tp11.png" alt="" height="60px"><br>学籍卡片</p3></Eleven>
<Twelve><p3><img src="c:\Users\A\Desktop\tp12.png" alt="" height="60px"><br>修改密码</p3></Twelve>
</div>
<br>
<br>
<div class="e"><small>Copyright (C) 湖南强智科技发展有限公司 All Rights Reserved 湘ICP 备12010071号</small></div>
</body>
</html>
运行截屏