请问是这个样子吗
来源:5-2 编程练习
hy_wang
2018-06-05 17:22:13
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
p{
margin:0;
padding:0;
}
header{
width: 100%;
display: flex;
background: #000;
color: #fff;
align-items: center;
justify-content: center;
}
.logo,.nav,.login{
flex: 1;
display: flex;
align-items: center;
justify-content: center;
}
.nav li{
flex: 1;
list-style: none;
}
}
input[type='button']:first-of-type{
margin-right:50px;
}
/*中间主体*/
section{
margin-top: 50px;
display: flex;
align-items: center;
justify-content: space-around;
}
.section{
border-radius: 10px;
height: 23vh;
min-height:200px;
width: 40%;
background: #77e5f6;
display: flex;
justify-content: space-around;
align-items: center;
}
.box{
display: flex;
flex-shrink: 1;
height: 100%;
flex-direction: column;
justify-content: space-around;
}
.shopping .btn{
width:150px;
height: 35px;
text-align: center;
line-height: 35px;
background: #d1d805;
color:#fff;
border-radius: 10px;
}
</style>
</head>
<body>
<!-- 头部 -->
<header>
<div class="logo">
<img src="http://climg.mukewang.com/59197ab000014f1503000100.jpg" alt="">
</div>
<ul class="nav">
<li>课程</li>
<li>路径</li>
<li>猿问</li>
<li>手记</li>
</ul>
<div class="login">
<input type="button" value="登录">
<input type="button" value="注册">
</div>
</header>
<!-- 主体内容 -->
<section>
<div class="section">
<div class="box">
<p>《前端小白入门手册》</p>
<div>适用人群:没有任何前端基础的小白</div>
<div>费用:¥499</div>
</div>
<div class="shopping">
<div class="btn">加入购物车</div>
</div>
</div>
<div class="section">
<div class="box">
<p>《HTML5月CSS3实现动态网页》</p>
<div>适用人群:有html和css基础的童鞋</div>
<div>费用:¥599</div>
</div>
<div class="shopping">
<div class="btn">加入购物车</div>
</div>
</div>
</section>
<section>
<div class="section">
<div class="box">
<p>《前端小白入门手册》</p>
<div>适用人群:没有任何前端基础的小白</div>
<div>费用:¥499</div>
</div>
<div class="shopping">
<div class="btn">加入购物车</div>
</div>
</div>
<div class="section">
<div class="box">
<p>《HTML5月CSS3实现动态网页》</p>
<div>适用人群:有html和css基础的童鞋</div>
<div>费用:¥599</div>
</div>
<div class="shopping">
<div class="btn">加入购物车</div>
</div>
</div>
</section>
</body>
</html>请问老师正确吗
1回答
妮可妮可妮_
2018-06-05

根据习题要求,这一点没有实现效果
还有一处问题已经在这里说明了http://class.imooc.com/course/qadetail/54620
相似问题
回答 1
回答 1