麻烦指出不足,感觉好像有点不对..
来源:5-2 编程练习
 
			是否可以坚持走得更远些
2018-09-12 11:33:28
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
     /* 在此处补充代码*/
    *{
      margin:0;
      padding:0;
    }
    ul{
      list-style: none;
    }
    body{
      font-size: 16px;
    }
     /*头部*/
    header{
      width: 100%;
      background: black;
      color: white;
      display: flex;
      justify-content:space-around;
      align-items: center;
     }
    .nav{
      display: flex;
      width: 500px;
      height: 60px;
      justify-content:space-between;
      align-items:center;
    }
    .login{
      width: 200px;
      height: 50px;
      display: flex;
      justify-content:space-between;
    }
    .login input{
      background:#FFA500;
      border-radius: 8px;
      border:none;
      width: 70px;
      color: white;
    }
    .login input:hover{
      color: #ADD8E6;
      cursor:pointer;
    }
  
    /*主体部分*/
    section{
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      justify-content:space-around;
    }
    .section{
      width: 45%;
      height: 200px;
      background: #ADD8E6;
      margin-top: 25px;
      border-radius: 8px;
      display: flex;
      justify-content:space-around;
      align-items:center;
    }
    .box{
      height: 100%;
      display: flex;
      flex-direction:column;
      justify-content: space-around;
    }
    .btn{
      width: 180px;
      height: 60px;
      background: #FFA500;
      text-align: center;
      line-height: 60px;
      color: white;
      border-radius:8px;
      font-weight: bold;
    }
    .btn:hover{
      color: #ADD8E6;
      cursor:pointer;
    }
    </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基础的童鞋</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基础的童鞋</div>
        <div>费用:¥599</div>
      </div>
      <div class="shopping">
        <div class="btn">加入购物车</div>
      </div>
    </div> 
  </section>  
</body>
</html>1回答
 
					好帮手慕夭夭
2018-09-12
效果实现的是可以的呢 , 文字字体的差别是没有关系的哦 , 继续加油 ! 祝学习愉快
相似问题