请老师检查

来源:3-17 编程练习

木子小可爱

2019-10-15 22:13:58

<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8">

    <title></title>

    <style>

      /*color:#fff;

     background-color:#000;*/

     *{

      padding:0;margin:0;

     }

     li{

      list-style:none;

     }

     header{

      justify-content:space-around;align-items:center; color:#fff;background-color:#000;display:flex

     }

     .nav{

      width:400px; justify-content:space-around;display:flex;

     }

     .login{

      justify-content: space-around;display:flex;

     }

     input{

      display:flex;border:none;width:50px;justify-content: space-around;background-color: #ffa500;margin:0 10px;border-radius:5px;color:#fff;

     }

     section{

      display:flex;

      justify-content: space-around;

      font-size:18px;

      flex-wrap:wrap;

    }

     section .section{

      display:flex;

      width:40%;

      height:200px;

      background:lightblue;

      border-radius:8px;

      margin-top:20px;

      justify-content: space-around;

     }

     .section .box{

      display:flex;

      flex-direction:column;

      justify-content: space-around;

     }

     .shopping{

      display:flex; 

      justify-content: center;

      align-items:center;

     }

     .shopping .btn{

      background:orange;

      border-radius:5px;

      border:none;

      padding:10px;

      color:#fff;

      font-weight:bold;

     }

     /* 在此处补充代码*/

    </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>《前端小白入门手册》</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回答

好帮手慕夭夭

2019-10-16

你好同学,效果实现正确,继续加油,祝学习愉快!

0

0 学习 · 6815 问题

查看课程

相似问题