Correcting teacher:天蓬老师
Correction status:qualified
Teacher's comments:看来咱们的步子有点大了, 容易扯着, 我会注意的
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="static/css/font-icon.css" />
<title>仿PHP中文网移动端</title>
<style>
* {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
}
html {
width: 100vw;
height: 100vh;
font-size: 14px;
background-color: lightgray;
}
/* 头部样式 */
header {
width: 100vw;
height: 5vh;
display: flex;
background-color: #3d3737;
justify-content: space-between;
align-items: center;
padding: 0 1vw;
box-sizing: border-box;
color: darkgray;
position: fixed;
top:0;
}
header > a > img {
width: 30px;
vertical-align: middle;
border-radius: 50%;
}
header > a:last-of-type > img {
width: 28vw;
height: 7vh;
}
/* 轮播图 */
.banner img {
width: 100vw;
height: 35vh;
vertical-align: middle;
}
nav {
width: 100vw;
height: 25vh;
display: flex;
flex-flow: row wrap;
margin: auto;
padding: 5px;
justify-content: space-around;
align-items: center;
box-sizing: border-box;
background-color: #fff;
}
nav img {
width: 40px;
}
nav > div {
width: 25%;
display: flex;
flex-flow: column nowrap;
align-items: center;
}
/* 推荐课程 */
.hot-courser {
margin: 5px auto;
display: flex;
flex-flow: column nowrap;
padding-top: 5px;
box-sizing: border-box;
background-color: #fff;
}
.hot-courser > .one {
margin: 0 10px;
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
}
.hot-courser > .one img {
width: 45vw;
height: 15vh;
vertical-align: middle;
}
.hot-courser > .two {
display: flex;
margin: 5px 10px;
flex-flow: row nowrap;
justify-content: flex-start;
background-color: #fff;
}
.hot-courser > .two img {
width: 30vw;
height: 20vw;
vertical-align: middle;
}
.hot-courser > .two > div {
padding: 5px;
display: flex;
flex-flow: column nowrap;
justify-content: space-between;
}
.hot-courser > .two > div > div > span:first-of-type {
border-radius: 25%;
font-size: 1rem;
color: lightgray;
}
.hot-courser > .two > div > div > span:last-of-type {
color: darkgrey;
margin: 5px;
}
.new-courser {
width: 100vw;
}
.new-courser > .courser {
width: 100vw;
height: 20vh;
margin-top: 10px;
display: flex;
flex-flow: row nowrap;
background-color: #fff;
justify-content: space-between;
align-items: center;
}
.new-courser img {
width: 30vw;
height: 120px;
vertical-align: middle;
margin: 5px 10px;
align-self: flex-end;
}
.new-courser > .courser > div {
width: 70vw;
height: 120px;
display: flex;
flex-flow: column nowrap;
justify-content: space-between;
}
.new-courser > .courser > div > :first-child {
font-size: 1.2rem;
color: #473838;
font-weight: bold;
}
.new-courser > .courser > div > :last-child {
display: flex;
justify-content: space-between;
margin-right: 10px;
color: darkgray;
}
.new-courser > .courser > div > :last-child > :first-child {
background-color: #776e6e;
border-radius: 25%;
color: lightgray;
}
/* 最新文章 */
.articles {
width: 100vw;
}
.articles > .article {
width: 100vw;
height: 10vh;
margin-top: 5px;
display: flex;
flex-flow: row nowrap;
background-color: #fff;
justify-content: space-between;
padding: 10px 5px;
}
.articles > .article img {
width: 40vw;
height: 80px;
vertical-align: middle;
}
.articles > .article > div {
height: 80px;
display: flex;
flex-flow: column nowrap;
justify-content: space-evenly;
}
.articles > .article > div > p {
font-size: 1.1rem;
font-weight: 500;
color:#00000f
}
.new-unit2 > a {
width: 100vw;
height: 35px;
padding: 0 10px;
margin-bottom: 15px;
box-sizing: border-box;
background-color: white;
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: center;
}
/* 最新博文*/
.course1 >.blog {
width: 100vw;
height: 40px;
padding: 0 10px;
margin-bottom: 15px;
box-sizing: border-box;
background-color: white;
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: space-between;
}
.course1 > .blog a:first-of-type {
width: 70vw;
}
.course1 > .blog a {
font-size: 1.2rem;
color: black;
font-weight: 500;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.mony1 > a {
width: 100vw;
height: 35px;
padding: 0 10px;
margin-bottom: 15px;
box-sizing: border-box;
background-color: white;
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: center;
}
body > footer {
color: rgb(22, 3, 110);
background-color: #068d3e;
border-top: 1px solid #ccc;
height: 60px;
position: fixed;
bottom: 0;
width: 100vw;
display: flex;
justify-content: space-around;
}
body > footer > a {
margin-top: 10px;
font-size: 1rem;
display: flex;
flex-flow: column nowrap;
align-items: center;
}
body > footer > a > span:first-of-type {
font-size: 1.8rem;
}
</style>
</head>
<body>
<!-- 页眉 -->
<header>
<a href=""><img src="static/images/user.jpg" alt="" /></a>
<a href=""><img src="static/images/logo.png" alt="" /></a>
<span class="iconfont"></span>
</header>
<!-- 主体 -->
<div class="container">
<!-- 轮播图 -->
<div class="banner">
<a href=""><img src="static/images/11.png" alt="" /></a>
</div>
<!-- 导航区 -->
<nav>
<div>
<a href=""><img src="static/images/html.png" alt="" /></a>
<a href="">HTML/CSS</a>
</div>
<div>
<a href=""><img src="static/images/JavaScript.png" alt="" /></a>
<a href="">JavaScript</a>
</div>
<div>
<a href=""><img src="static/images/code.png" alt="" /></a>
<a href="">服务端</a>
</div>
<div>
<a href=""><img src="static/images/sql.png" alt="" /></a>
<a href="">数据库</a>
</div>
<div>
<a href=""><img src="static/images/app.png" alt="" /></a>
<a href="">移动端</a>
</div>
<div>
<a href=""><img src="static/images/tool2.png" alt="" /></a>
<a href="">工具</a>
</div>
<div>
<a href=""><img src="static/images/manual.png" alt="" /></a>
<a href="">手册</a>
</div>
<div>
<a href=""><img src="static/images/live.png" alt="" /></a>
<a href="">直播</a>
</div>
</nav>
<!-- 推荐课程 -->
<h2>推荐课程</h2>
<div class="hot-courser">
<div class="one">
<a href=""><img src="static/images/1.jpg" alt="" /></a>
<a href=""><img src="static/images/2.jpg" alt="" /></a>
</div>
<div class="two">
<a href=""><img src="static/images/6.png" alt="" /></a>
<div>
<p>CI框架30分钟极速入门</p>
<div><span>中级</span><span>12216次播放</span></div>
</div>
</div>
<div class="two">
<a href=""><img src="static/images/7.png" alt="" /></a>
<div>
<p>CI框架30分钟极速入门</p>
<div><span>中级</span><span>80000次播放</span></div>
</div>
</div>
<div class="two">
<a href=""><img src="static/images/1.jpg" alt="" /></a>
<div>
<p>CI框架30分钟极速入门</p>
<div><span>中级</span><span>13221次播放</span></div>
</div>
</div>
</div>
<!-- 最新更新 -->
<h2>最新更新</h2>
<div class="new-courser">
<div class="courser">
<a href=""><img src="static/images/5.jpg" alt="" /></a>
<div>
<a href=""><span>2019python自学视频</span></a>
<p>
本课程适合想从零开始学习 Python
编程语言的开发人员。由浅入深的带你进入
</p>
<div><span>初级</span><span>3285次播放</span></div>
</div>
</div>
<div class="courser">
<a href=""><img src="static/images/12.png" alt="" /></a>
<div>
<a href=""><span>PHP开发免费公益直播课</span></a>
<p>
主讲:php中文网-朱老师( Peter Zhu) 时间:2019.10.17 晚 20:00-22:00
主题:如何高效的学习一门新技术?
</p>
<div><span>初级</span><span>34444次播放</span></div>
</div>
</div>
<div class="courser">
<a href=""><img src="static/images/12.png" alt="" /></a>
<div>
<a href=""><span>PHP开发免费公益直播课</span></a>
<p>
主讲:php中文网-朱老师( Peter Zhu) 时间:2019.10.17 晚 20:00-22:00
主题:如何高效的学习一门新技术?
</p>
<div><span>初级</span><span>36167次播放</span></div>
</div>
</div>
<div class="courser">
<a href=""><img src="static/images/12.png" alt="" /></a>
<div>
<a href=""><span>PHP开发免费公益直播课</span></a>
<p>
主讲:php中文网-朱老师( Peter Zhu) 时间:2019.10.17 晚 20:00-22:00
主题:如何高效的学习一门新技术?
</p>
<div><span>初级</span><span>48997次播放</span></div>
</div>
</div>
<div class="courser">
<a href=""><img src="static/images/12.png" alt="" /></a>
<div>
<a href=""><span>PHP开发免费公益直播课</span></a>
<p>
主讲:php中文网-朱老师( Peter Zhu) 时间:2019.10.17 晚 20:00-22:00
主题:如何高效的学习一门新技术?
</p>
<div><span>初级</span><span>66167次播放</span></div>
</div>
</div>
</div>
<!-- 最新文章 -->
<h2>最新文章</h2>
<div class="articles">
<div class="article">
<div>
<p>为什么我的电脑只有C盘</p>
<span>发布时间:<time>2020-04-10</time></span>
</div>
<a href=""><img src="static/images/13.jpg" alt="" /></a>
</div>
<div class="article">
<div>
<p>为什么我的电脑只有C盘</p>
<span>发布时间:<time>2020-04-1</time></span>
</div>
<a href=""><img src="static/images/13.jpg" alt="" /></a>
</div>
<div class="article">
<div>
<p>为什么我的电脑只有C盘</p>
<span>发布时间:<time>2020-03-12</time></span>
</div>
<a href=""><img src="static/images/13.jpg" alt="" /></a>
</div>
</div>
</div>
</div>
<div class="bgcolor">
<h2>最新博文</h2>
<div class="course1">
<div class="blog">
<a href="">thinkphp5.6源码阅读</a>
<a href="">2020-4-11</a>
</div>
<div class="blog">
<a href="">thinkphp5.6源码阅读</a>
<a href="">2020-4-11</a>
</div>
<div class="blog">
<a href="">thinkphp5.6源码阅读</a>
<a href="">2020-4-11</a>
</div>
<div class="blog">
<a href="">thinkphp5.6源码阅读</a>
<a href="">2020-4-11</a>
</div>
<div class="blog">
<a href="">thinkphp5.6源码阅读</a>
<a href="">2020-4-11</a>
</div>
<div class="mony">
<div class="mony1">
<a href="">更多内容</a>
</div>
</div>
</div>
</div>
<div class="mony">
<div class="mony1">
<a href="">更多内容</a>
</div>
</div>
<!-- 底部 -->
<footer>
<a href="">
<span class="iconfont"></span>
<span>首页</span>
</a>
<a href="">
<span class="iconfont"></span>
<span>视频</span>
</a>
<a href="">
<span class="iconfont"></span>
<span>设置</span>
</a>
<a href="">
<span class="iconfont"></span>
<span>我的</span>
</a>
</footer>
</body>
</html>
最初的时候,我很茫然,因为刚接触陌生的东西心里会很害怕跟不上老师的进程。刚开始几节课,老师讲得比较基础,还能跟得上,渐渐的老师授课的进程开始加速,有些跟不上了,需要下课后自己再巩固。这次老师布置的第一个综合任务,要求做一个仿PHP中文网移动端的界面。这次也花了整天近三天时间,还是知识了解运用的不够,毕竟是第一次接触,但收获也挺多的,还需要自己多加强练习才能很好的掌握。