3-17编程练习
来源:3-17 编程练习
慕言_7946275
2019-11-08 13:09:31
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
/* 在此处补充代码*/
*{
/*box-sizing: border-box;*/
padding: 0;
margin: 0;
}
li {
list-style: none;
}
header{
width: 100%;
height: 100px;
background-color: #000;
color:#fff;
display: flex;
justify-content:space-around;
align-items: center;
}
.nav{
display: flex;
flex-direction: row;
width: 400px;
justify-content: space-between;
font-size: 24px;
}
.login{
display: flex;
justify-content: space-around;
}
input{
width: 40px;
height:30px;
border:none;
color:#fff;
background-color: orange;
border-radius: 5px;
display: flex;
justify-content: space-around;
margin:0 10px;
}
section{
display: flex;
flex-wrap:wrap;
justify-content: space-around;
font-size:16px;
font-weight: bold;
}
section .section{
display: flex;
width: 40%;
height: 200px;
background-color: lightblue;
justify-content: space-around;
border-radius: 10px;
margin-top: 20px;
}
.section .box{
width: 320px;
display: flex;
justify-content: space-around;
flex-direction: column;
}
.shopping{
display: flex;
justify-content: center;
align-items: center;
}
.shopping .btn{
background: orange;
color:#fff;
border:none;
border-radius: 5px;
padding: 8px 8px;
font-weight: bold;
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>
</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>《从H5网页开发到移动端响应式开发》</p>
<div>适用人群:有html、css、js、jQ基础的童鞋</div>
<div>费用:¥599</div>
</div>
<div class="shopping">
<div class="btn">加入购物车</div>
</div>
</div>
<div class="section">
<div class="box">
<p>《从H5网页开发到移动端响应式开发》</p>
<div>适用人群:有html、css、js、jQ基础的童鞋</div>
<div>费用:¥599</div>
</div>
<div class="shopping">
<div class="btn">加入购物车</div>
</div>
</div>
</section>
</body>1回答
好帮手慕糖
2019-11-08
同学你好,效果实现没有问题,继续加油!
祝学习愉快!
相似问题