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>手机端页面</title>
<link rel="stylesheet" href="../122301/static/css/index.css">
<link rel="stylesheet" href="../122301/static/icon-font/iconfont.css">
<link rel="stylesheet" href="../122301/static/css/header.css">
<link rel="stylesheet" href="../122301/static/css/footer.css">
<link rel="stylesheet" href="../122301/static/css/main.css">
</head>
<body>
<!-- 页眉 -->
<div class="header">
<!-- 字体菜单 -->
<div class="menu iconfont icon-menu"></div>
<!-- 搜索框 -->
<div class="search">
<div class="logo">JD</div>
<div class="zoom iconfont icon-search"></div>
<input type="text" value="磁力片" class="words">
</div>
<!-- 登录按钮 -->
<a href="" class="login">登录</a>
</div>
<!-- 主体 -->
<div class="main">
<!-- banner图 -->
<div class="imag">
<img src="../122301/static/images/bg/banner.jpg" alt="">
</div>
<!-- 主导航区 -->
<ul class="nav">
<li>
<a href=""><img src="static/images/dh/nav-1.png" alt=""></a>
<a href="">京东超市</a>
</li>
<li>
<a href=""><img src="static/images/dh/nav-2.png" alt=""></a>
<a href="">数码电器</a>
</li>
<li>
<a href=""><img src="static/images/dh/nav-3.png" alt=""></a>
<a href="">京东服饰</a>
</li>
<li>
<a href=""><img src="static/images/dh/nav-4.png" alt=""></a>
<a href="">京东生鲜</a>
</li>
<li>
<a href=""><img src="static/images/dh/nav-5.png" alt=""></a>
<a href="">京东到家</a>
</li>
<li>
<a href=""><img src="static/images/dh/nav-6.png" alt=""></a>
<a href="">充值缴费</a>
</li>
<li>
<a href=""><img src="static/images/dh/nav-7.png" alt=""></a>
<a href="">9.9元拼</a>
</li>
<li>
<a href=""><img src="static/images/dh/nav-8.png" alt=""></a>
<a href="">领券</a>
</li>
<li>
<a href=""><img src="static/images/dh/nav-9.png" alt=""></a>
<a href="">领金贴</a>
</li>
<li>
<a href=""><img src="static/images/dh/nav-10.png" alt=""></a>
<a href="">PLUS会员</a>
</li>
</ul>
<!-- 秒杀区 -->
<div class="ms">
<!-- 头部 -->
<div class="ms-top">
<div class="left">
<div class="title">京东秒杀</div>
<div class="notice">
<div class="tips">22点专场</div>
<div class="time">01:11:22</div>
</div>
</div>
<div class="right">更多秒杀</div>
</div>
<!-- 秒杀主体区 -->
<ul class="ms-body">
<li class="item">
<a href=""><img src="static/images/ms/ms-1.jpg" alt=""></a>
<div class="iconfont icon-rmb">338</div>
<div class="iconfont icon-rmb">558</div>
</li>
<li class="item">
<a href=""><img src="static/images/ms/ms-2.jpg" alt=""></a>
<div class="iconfont icon-rmb">3456</div>
<div class="iconfont icon-rmb">4567</div>
</li>
<li class="item">
<a href=""><img src="static/images/ms/ms-3.jpg" alt=""></a>
<div class="iconfont icon-rmb">789</div>
<div class="iconfont icon-rmb">999</div>
</li>
<li class="item">
<a href=""><img src="static/images/ms/ms-4.jpg" alt=""></a>
<div class="iconfont icon-rmb">3213</div>
<div class="iconfont icon-rmb">4532</div>
</li>
</ul>
</div>
</div>
<!-- 页脚 -->
<div class="footer">
<div>
<div class="iconfont icon-home"></div>
<span>主页</span>
</div>
<div>
<div class="iconfont icon-layers"></div>
<span>分类</span>
</div>
<div>
<div class="iconfont icon-kehuguanli"></div>
<span>京喜</span>
</div>
<div>
<div class="iconfont icon-shopping-cart"></div>
<span>购物车</span>
</div>
<div>
<div class="iconfont icon-user"></div>
<span>未登录</span>
</div>
</div>
</body>
</html>
/* 引入公共清除样式表 */
@import'reset.css';
/* 页眉 */
.header {
height: 4.4rem;
background-color: #e43130;
color: white;
/* 固定定位 */
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 100px;
}
/* 主体 */
.main {
position: absolute;
top:4.4em;
left: 0;
right: 0;
bottom:4.4em;
font-size: 1.4rem;
}
/* 页脚 */
.footer {
height: 4.4rem;
background-color: #fafafa
color: #666;
/* 固定定位 */
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 100;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
li {
list-style: none;
}
a {
color: #7b7b7b;
text-decoration: none;
}
.header {
display: flex;
align-items: center;
}
.header .menu {
flex: 1;
font-size: 1.5rem;
text-align: center;
}
.header .search {
flex: 6;
display: flex;
background-color: #F7F7F7;
padding: 0.5rem;
border-radius: 3rem;
display: flex;
}
/* logo */
.header .search .logo {
color: #E93B3D;
flex: 0 1 3rem;
font-size: 1.5rem;
font-weight: bolder;
/* 水平垂直居中 */
text-align: center;
line-height:2rem ;
}
/* 放大镜 */
.header .search .zoom {
color: #BBBBBB;
flex: 0 1 3rem;
border-left: 1px solid;
/* 水平垂直居中 */
text-align: center;
line-height:2rem ;
}
.header .search .words {
flex: auto;
border: none;
background-color: #F7F7F7;
outline: none;
color:#aaa ;
}
.header .login {
flex: 1;
color: white;
text-align: center;
}
.footer {
display: flex;
justify-content: space-around;
align-items: center;
background-color: rgb(233, 231, 230);
opacity: 0.8;
}
.footer>div{
display: flex;
flex-flow: column nowrap;
align-items: center;
}
.footer>div>.iconfont{
font-size: 1.9rem;
color: rgb(66, 64, 64);
}
.footer>div>span{
font-size: 0.9rem;
color: rgb(66, 64, 64);
}
.main .imag img {
max-width: 96%;
height: auto;
border-radius: 0.5rem;
position: relative;
top: -1rem;
left: 0.5rem;
}
.main .nav {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
font-size: 1rem;
}
.main .nav img {
width: 4rem;
height: 4rem;
}
.main .nav li {
flex: 1 1 20%;
display: flex;
flex-flow: column nowrap;
align-items: center;
}
/* 秒杀 */
.main .ms {
background-color: #fff;
padding: 1rem;
margin: 1rem 0;
}
.main .ms .ms-top {
font-size: 1.3rem;
height: 3rem;
display: flex;
justify-content: space-between;
}
.main .ms .ms-top .left {
display: flex;
}
.main .ms .ms-top .left .notice {
font-size: 1.1rem;
height: 2rem;
border: 1px solid #e43130;
border-radius: 2rem;
margin-left: 1rem;
display: flex;
justify-content: center;
align-items: center;
}
.main .ms .ms-top .left .notice .tips {
background-color: #e43130;
color: #fff;
border-radius: 2rem;
padding: 0.3rem 0.5rem;
}
.main .ms .ms-top .left .notice .time {
padding: 0.3rem 0.5rem;
}
.main .ms .ms-top .right {
color: #e43130;
}
/* 主体区 */
.main .ms .ms-body {
display: flex;
justify-content: space-between;
}
.main .ms .ms-body img {
height: 12rem;
width: 12rem;
}
/* 秒杀价 */
.main .ms .ms-body .item div:first-of-type {
color: #e43130;
font-weight: bolder;
}
/* 原价 */
.main .ms .ms-body .item div:last-of-type {
color: #666666;
text-decoration: line-through;
text-decoration-color: #666666;
}