老师帮忙检查一下
来源:5-2 编程练习
 
			慕斯9545835
2018-10-02 11:47:49
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
/* 在此处补充代码*/
*{
margin:0;
padding:0;
font-size:18px;
}
header{
background:#000;
color:#fff;
display:flex;
justify-content:space-around;
align-items:center;
height:100px;
}
.nav{
display:flex;
list-style:none;
width:300px;
justify-content:space-around;
}
.login{
display:flex;
width:100px;
justify-content:space-around;
}
.login input{
background:#FFA500;
border:3px solid #FFA500;
color:#fff;
border-radius:2px;
}
li:hover,input:hover,.btn:hover{
color:red;
}
section{
display:flex;
align-items:center;
justify-content:space-around;
}
.section{
width:40%;
display:flex;
background:#ADD8E6;
border:1px solid #ADD8E6;
justify-content:space-between;
align-items:center;
padding:20px;
margin:20px;
border-radius:5px;
}
.btn{
background:#FFA500;
border:3px solid #FFA500;
color:#fff;
border-radius:2px;
}
</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>
</body>
</html>
1回答
 
					妮可妮可妮_
2018-10-06

建议同学严格按照习题需求来实现效果哦~
祝学习愉快!
相似问题