我有一个问题,请老师帮我看一下

来源:3-17 编程练习

weibo_慕婉清1565219

2020-04-14 23:08:50

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width">

<title></title>

<style type="text/css">

*{

      margin: 0;

      padding: 0; 

      box-sizing: border-box;     

      }

      header{

      display: flex;

      flex: row;

      width: 100%;

      height: 80px;

      background-color: #000;

      justify-content: space-between;

      align-items: center;

      }

      .logo{

      margin-left: 80px;

      }

      .logo img{

      display: block;

      }

      .nav{

      display: flex;

      flex: row;

      list-style: none;

      color: #fff;

      width: 600px;

      justify-content: space-around;

      }

      .nav li{

      font-size: 24px;

      margin: 0 40px;

      }

      .login{

      display: flex;

      flex: row;

      margin-right: 80px;

      width: 150px;

      justify-content: space-around;

      }

      .login input{

      width: 50px;

      height: 30px;

      border-radius: 3px;

      background-color: #FFCC00;

      color: #fff;

      border: none;

      }



      section{

      width: 100%;

      display: flex;

      flex-wrap: wrap;

      justify-content: space-around;


      }

      .section{

      display: flex;

      width: 45%;

      height: 200px;

      background-color: #99CCFF;

      border-radius: 5px;

      justify-content: space-around;

      margin-top: 20px;

      }

      .box{

      width: 350px;

        display: flex;

        flex-direction: column;

        justify-content: space-around;

        

      }

      .shopping{     

      display: flex;

        justify-content: space-around;

      align-items: center;

         

      }

      .btn{

      color: #fff;

      width: 100px;

      height: 50px;

      background-color: #FFCC00;     

      border-radius: 5px;

      display: flex;

      justify-content: center;

      align-items: center;

      }

</style>

</head>

<body>

<header>

     <div class="logo">

       <img src="http://climg.mukewang.com/59feb59700019dab01910057.png" 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>

</html>

请老师帮我看一下,我四个购物车按钮不会对齐,谢谢老师

写回答

1回答

好帮手慕糖

2020-04-15

同学你好,如下,老师测试是对齐的。

http://img.mukewang.com/climg/5e96817209b4595318180698.jpg

若不是指这里,可以详细的描述下问题,也可以截图说明下哦。

祝学习愉快~

0

0 学习 · 6815 问题

查看课程