有瑕疵么?。。。

有瑕疵么?。。。

<!DOCTYPE html>

<html>


<head>

 <meta charset="UTF-8" />

 <title></title>

 <style>

/* 在此处补充代码*/

* {

     list-style: none;

     margin: 0;

     padding: 0;

     border: none;

     outline: none;

   }

body {

     display: flex;

     flex-direction: column;

   }

body header {

     display: flex;

     justify-content: space-around;

     background-color: #333;

     width: 100%;

     height: 57px;

   }

body header .nav {

     display: flex;

   }

body header .nav li {

     padding: 0 50px 0 50px;

     line-height: 57px;

     color: #fff;

   }

body header .login {

     display: flex;

     align-items: center;

     justify-content: space-between;

     width: 75px;

   }

.btn {

     border-radius: 5px;

     background-color: tomato;

     padding: 1px 3px;

   }

body section {

     display: flex;

     flex-wrap: wrap;

     justify-content: space-around;

     align-content: space-around;

     height: 250px;

   }

body section .section {

     background-color: turquoise;

     width: 45%;

     height: 100px;

     border-radius: 5px;

     display: flex;

     justify-content: space-around;

   }

body section .section .box {

     display: flex;

     flex-direction: column;

     justify-content: space-around;

   }

body section .section .shopping {

     display: flex;

     /* flex-direction: column; */

     /* justify-content: space-around; */

     align-items: center;

   }

/* .class-center{

     display: flex;

     flex-direction: column;

     justify-content: space-around;

   } */

</style>

</head>


<body>

 <!-- 头部 -->

 <header>

   <div class="logo">

     <img src="http://img1.sycdn.imooc.com/climg//59feb59700019dab01910057.png" alt="" />

   </div>

   <ul class="nav">

     <li>课程</li>

     <li>路径</li>

     <li>猿问</li>

     <li>手记</li>

   </ul>

   <div class="login">

     <input type="button" value="登录" class="btn" />

     <input type="button" value="注册" class="btn" />

   </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>《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回答

同学你好,下方两处的间距调整为一样的,效果会更美观

http://img1.sycdn.imooc.com//climg/60b6e40a09feff6704670277.jpg

代码参考:

http://img1.sycdn.imooc.com//climg/60b6e4910964c54805050360.jpg

按钮调整大一些会更美观

http://img1.sycdn.imooc.com//climg/60b6e4e109f9b68804820226.jpg

​祝学习愉快~

问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师