5-2编程练习题
来源:5-2 编程练习
 
			慕用2313532
2018-04-15 15:25:00
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
</body>
</html><!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
*{margin:0; padding: 0; list-style: none; border:none;}
header{display: flex; background-color: #000; color:#fff;justify-content: space-around; width: 100%;}
.nav{display: flex; justify-content:space-between; align-items: center; width: 30%;font-size: 25px;}
.login{ display: flex;align-items: center; width: 10%; justify-content: space-around; }
.login input{ width: 50px;height: 30px; border-radius: 5%; background-color: yellow;}
section{display: flex; justify-content: space-around;margin-top: 20px; flex-wrap: wrap; padding: 50px 0}
.section{display: flex; background-color: #00CCCC; width: 40%; justify-content:space-around; border-radius: 20px; margin: 20px 0; font-size: 20px; align-items: center; padding: 20px 0;}
.box{display: flex; flex-direction: column; justify-content: center; line-height: 40px; }
/*.shopping{width: 150px;height: 50px;border-radius: 10px;display: flex;align-items: center; justify-content: center;}*/
.shopping{
width: 150px;
height: 50px;
border-radius: 10px;
background-color: orange;
display: flex;
align-items: center;
justify-content: center;
}
.btn{background-color: orange; color: #fff;text-align: center;}
</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 class="btn">加入购物车</div>
</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>
<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>
<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-04-16
经测试,效果实现ok,祝学习愉快,加油!