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">
<title>Document</title>
<style>
/* 设置全局属性 */
/* 初始化 */
* {
padding: 0;
margin: 0;
}
a {
text-decoration: none;
color: #666;
}
/* 设置可视化区域 */
html {
width: 100vw;
height: 100vh;
font-size: 14px;
}
body {
min-width: 360px;
background-color: #fff;
display: flex;
flex-flow: column nowrap;
align-content: center;
}
.iconfont {
font-family: "iconfont" !important;
font-size: 1.6rem;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body>header {
background-color: #2d353c;
color: white;
height: 30px;
align-items: center;
display: flex;
justify-content: space-between;
align-self: baseline;
padding: 0 10px;
position: fixed;
width: 100%;
}
body>header>.login>img {
width: 20px;
}
body>header>.logo>img {
height: 25px;
}
body>header>span {
width: 20px;
padding-right: 15px;
}
body>.banner>img {
width: 100vw;
padding-top: 30px;
}
.nav {
width: 100vw;
display: flex;
flex-flow: row wrap;
justify-content: space-between;
}
.nav>a {
width: 25vw;
display: flex;
flex-flow: column nowrap;
font-size: 0.8em;
align-items: center;
}
.nav>a>img {
width: 17vw;
padding: 4vw 4vw;
}
.c_tittle {
padding: 2px 2px;
font-size: 1.2em;
color: black;
align-self: start;
}
.v_tittle {
font-size: 1em;
color: black;
}
.abstract {
font-size: 0.8em;
color: slategray;
}
.sign {
border-radius: 3px 3px;
background-color: black;
color: blanchedalmond;
font-size: 0.7em;
padding: 1px 1px;
}
.p_view {
font-size: 0.7em;
}
.more {
width: 95vw;
height: 30px;
margin: 5px;
background-color: #f1f1f1;
box-shadow: 1px 1px 3px rgb(219, 214, 214);
/* border: 1px silver solid; */
text-align: center;
}
.top_course>.container1 {
display: flex;
flex-flow: row nowrap;
align-items: center;
align-content: space-around;
margin: 2px;
}
.top_course>.container1>a>img {
width: 48vw;
padding: 2px 2px;
}
.top_course>.container2 {
display: flex;
flex-flow: column nowrap;
align-items: left;
align-content: space-around;
padding: 2px 2px;
}
.top_course>.container2>a {
display: flex;
flex-flow: row nowrap;
margin: 2px;
background-color: #f4f4f4;
}
.top_course>.container2>a>img {
width: 48vw;
margin-right: 3px;
}
.top_course>.container2>a>div>div {
display: flex;
flex-flow: row nowrap;
align-self: baseline;
padding: 3px 1px;
align-content: space-around;
}
.new_course {
display: flex;
flex-flow: column nowrap;
align-items: left;
align-content: space-around;
padding: 2px 2px;
}
.new_course>a {
display: flex;
flex-flow: row nowrap;
margin: 2px;
background-color: #f4f4f4;
}
.new_course>a>img {
width: 48vw;
margin-right: 3px;
}
.new_course>a>div>div {
display: flex;
flex-flow: row nowrap;
align-self: baseline;
padding: 3px 1px;
align-content: space-around;
}
.new_article {
display: flex;
flex-flow: column nowrap;
align-items: center;
align-content: space-between;
padding: 2px 2px;
}
.new_article>a {
display: flex;
flex-flow: row nowrap;
margin: 2px;
background-color: #f4f4f4;
}
.new_article>a>div {
display: flex;
flex-flow: column nowrap;
align-items: flex-start;
align-content: space-around;
padding: 2px 2px;
width: 70vw;
}
.new_article>a>img {
width: 25vw;
margin-left: 3px;
}
.nex_blog {
display: flex;
flex-flow: column nowrap;
align-items: center;
align-content: space-between;
padding: 2px 2px;
}
.new_blog>a {
display: flex;
flex-flow: row nowrap;
align-items: flex-start;
justify-content: space-between;
margin: 2px;
background-color: #f4f4f4;
padding: 1px 5px 0 2px;
}
.nex_ask {
display: flex;
flex-flow: column nowrap;
align-items: center;
align-content: space-between;
padding: 2px 2px;
}
.new_ask>a {
display: flex;
flex-flow: row nowrap;
align-items: flex-start;
justify-content: space-between;
margin: 2px;
background-color: #f4f4f4;
padding: 1px 5px 0 2px;
}
body>footer {
color: #666;
background-color: #efefef;
border-top: 1px solid #ccc;
height: 55px;
position: fixed;
bottom: 0;
width: 100vw;
display: flex;
flex-flow: row nowrap;
justify-content: space-around;
}
body>footer>a {
margin-top: 10px;
font-size: 0.8rem;
display: flex;
flex-flow: column nowrap;
align-items: center;
}
body>footer>a>span:first-of-type {
font-size: 1.6rem;
}
</style>
</head>
<body>
<!-- 页眉 -->
<header>
<a href="" class="login"><img src="image/login.png" alt=""></a>
<a href="" class="logo"><img src="image/logo.png" alt=""></a>
<span class="iconfont"></span>
</header>
<div class="banner">
<img src="image/11.png" alt="" class="banner">
</div>
<!-- 导航 -->
<div class="nav">
<a href=""><img src="image/html.png" alt="HTML/CSS"><span>HTML/CSS</span></a>
<a href=""><img src="image/JavaScript.png" alt="JavaScript"><span>JavaScript</span></a>
<a href=""><img src="image/manual.png" alt="服务器"><span>服务器</span></a>
<a href=""><img src="image/sql.png" alt="数据库"><span>数据库</span></a>
<a href=""><img src="image/app.png" alt="移动端"><span>移动端</span></a>
<a href=""><img src="image/code.png" alt="手册"><span>手册</span></a>
<a href=""><img src="image/tool2.png" alt="工具"><span>工具</span></a>
<a href=""><img src="image/live.png" alt="直播"><span>直播</span></a>
</div>
<!-- 推荐课程区域 -->
<div class="top_course">
<h2 class="c_tittle">推荐课程</h2>
<div class="container1">
<a href=""><img src="image/tjkc1.jpg" alt=""></a>
<a href=""><img src="image/tjkc2.jpg" alt=""></a>
</div>
<div class="container2">
<a href="">
<img src="image/tjkc3.jpg" alt="">
<div class="">
<h2 class="v_tittle">CI框架30分钟极速入门</h2>
<div class="">
<span class="sign">中级</span>
<p class="p_view">61213次播放</p>
</div>
</div>
</a>
<a href="">
<img src="image/tjkc4.jpg" alt="">
<div class="">
<h2 class="v_tittle">2018前端入门_HTML5</h2>
<div class="">
<span class="sign">初级</span>
<p class="p_view">309683次播放</p>
</div>
</div>
</a>
</div>
</div>
<!-- 更新课程 -->
<div class="new_course">
<h2 class="c_tittle">最新更新</h2>
<a href="">
<img src="image/zxkc1.png" alt="">
<div class="">
<h2 class="v_tittle">PHP快速操控Excel之P...</h2>
<p class="abstract">老的PHPExcel已经停止更新了...</p>
<div>
<span class="sign">中级</span>
<p class="p_view">14872次播放</p>
</div>
</div>
</a>
<a href="">
<img src="image/zxkc2.png" alt="">
<div class="">
<h2 class="v_tittle">Thinkphp6.0正式版视...</h2>
<p class="abstract">Thinkphp6.0从2019年10月24日...</p>
<div>
<span class="sign">中级</span>
<p class="p_view">48581次播放</p>
</div>
</div>
</a>
<a href="">
<img src="image/zxkc3.jpg" alt="">
<div class="">
<h2 class="v_tittle">2019python自学视频</h2>
<p class="abstract">本课程适合想从零开始学习Pyth...</p>
<div>
<span class="sign">初级</span>
<p class="p_view">36112次播放</p>
</div>
</div>
</a>
<a href="">
<img src="image/zxkc4.png" alt="">
<div class="">
<h2 class="v_tittle">PHP开发免费公益直播课</h2>
<p class="abstract">主讲:php中文网-朱老师(Peter...</p>
<div>
<span class="sign">初级</span>
<p class="p_view">6795次播放</p>
</div>
</div>
</a>
<a href="">
<img src="image/zxkc5.jpg" alt="">
<div class="">
<h2 class="v_tittle">从零开始到WEB响应...</h2>
<p class="abstract">重点介绍了HTML、CSS、web...</p>
<div>
<span class="sign">初级</span>
<p class="p_view">29009次播放</p>
</div>
</div>
</a>
<a href="">
<img src="image/zxkc6.png" alt="">
<div class="">
<h2 class="v_tittle">PHP文件基础操作</h2>
<p class="abstract">好多同学在PHP基础的时候对PH...</p>
<div>
<span class="sign">中级</span>
<p class="p_view">8926次播放</p>
</div>
</div>
</a>
</div>
<!-- 最新文章 -->
<div class="new_article">
<h2 class="c_tittle">最新文章</h2>
<a href="">
<div class="">
<h2 class="v_tittle">微信引用功能什么意思</h2>
<p class="abstract">发布时间:2020-04-10</p>
</div>
<img src="image/zxwz1.jpg" alt="">
</a>
<a href="">
<div class="">
<h2 class="v_tittle">笔记本电脑滋滋作响怎么解决</h2>
<p class="abstract">发布时间:2020-04-10</p>
</div>
<img src="image/zxwz2.jpg" alt="">
</a>
<a href="">
<div class="">
<h2 class="v_tittle">win7电脑如何调整为最佳性能模式</h2>
<p class="abstract">发布时间:2020-04-10</p>
</div>
<img src="image/zxwz3.jpg" alt="">
</a>
<a href="">
<div class="">
<h2 class="v_tittle">关于java中的强引用与弱引用的介绍</h2>
<p class="abstract">发布时间:2020-04-10</p>
</div>
<img src="image/zxwz4.jpg" alt="">
</a>
<a href="">
<div class="">
<h2 class="v_tittle">win10电脑无法打开wlan怎么解决</h2>
<p class="abstract">发布时间:2020-04-10</p>
</div>
<img src="image/zxwz5.jpg" alt="">
</a>
<div class="more">
<a href="">更多内容</a>
</div>
</div>
<!-- 最新博客 -->
<div class="new_blog">
<h2 class="c_tittle">最新博文</h2>
<a href="">
<h2 class="v_tittle">跟小黑学漏洞利用开发之Window...</h2>
<p class="abstract">2020-4-10</p>
</a>
<a href="">
<h2 class="v_tittle">最新的XSS ByPass代码,跨站脚...</h2>
<p class="abstract">2020-4-10</p>
</a>
<a href="">
<h2 class="v_tittle">Composer windows安装详细介绍</h2>
<p class="abstract">2020-4-10</p>
</a>
<a href="">
<h2 class="v_tittle">AI只能电销机器人源码 源码解读...</h2>
<p class="abstract">2020-4-10</p>
</a>
<a href="">
<h2 class="v_tittle">利用css过滤实现玩网页夜模式适配</h2>
<p class="abstract">2020-4-10</p>
</a>
<div class="more">
<a href="">更多内容</a>
</div>
</div>
<!-- 最新问答 -->
<div class="new_ask">
<h2 class="c_tittle">最新问答</h2>
<a href="">
<h2 class="v_tittle">我访问不了</h2>
<p class="abstract">2020-4-10</p>
</a>
<a href="">
<h2 class="v_tittle">请教一个问题,我想用cut函数把0...</h2>
<p class="abstract">2020-4-10</p>
</a>
<a href="">
<h2 class="v_tittle">验证码输入正确了怎么还提示验证...</h2>
<p class="abstract">2020-4-10</p>
</a>
<a href="">
<h2 class="v_tittle">手册没有下载sdk</h2>
<p class="abstract">2020-4-10</p>
</a>
<a href="">
<h2 class="v_tittle">访问主页后,创建数据库出现错误...</h2>
<p class="abstract">2020-4-9</p>
</a>
<div class="more">
<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>
<style>
@font-face {
font-family: 'iconfont';
src: url('icon/iconfont.eot');
src: url('icon/iconfont.eot?#iefix') format('embedded-opentype'),
url('icon/iconfont.woff2') format('woff2'),
url('icon/iconfont.woff') format('woff'),
url('icon/iconfont.ttf') format('truetype'),
url('icon/iconfont.svg#iconfont') format('svg');
}
</style>
</body>
</html>