老师,登录那里的按钮边框怎么清除?我的代码哪里要修改吗?

来源:5-2 编程练习

DaDaDaLa

2018-04-27 20:33:11


<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8">

    <title></title>

    <style>

     /* 在此处补充代码*/

     *{

      padding: 0;

      margin: 0;

     }

     header{

      display: flex;

      background: #000;

      height: 100px;

      justify-content: space-between;

     }

     ul{

      display: flex;

      align-items: center;

      list-style: none;

      color: #fff;

      font-size: 24px;

     }

     li{

      margin: 0 20px;

     }

     input{

      color: #fff;

      font-size: 16px;

      border-radius: 4px;

      background: orange;

      padding: 2px 4px;

      outline: none;

      margin: 0 10px;

     }

     .login{

      display: flex;

      align-items: center;

     }

     div.section{

      display: flex;

      align-items: center;

      justify-content: space-between;

      width: 40%;

      height: 100px;

      padding: 10px 10px;

      background: rgba(173,216,230);

      margin: 10px 10px;

      border-radius: 5px;

      flex-shrink: 0;

     }

     div.box{

      display: flex;

      height: 100px;

      flex-direction: column;

      justify-content: space-around;

      padding: 4px 4px;

      flex-shrink: 0;

     }

     div.btn{

width: 100px;

height: 26px;

line-height: 26px;

font-size: 20px;

color: #fff;

padding: 4px 4px;

font-weight: bold;

border-radius: 5px;

background: orange;

text-align: center;

     }

     section{

      display: flex;

      justify-content: center;

      flex-wrap: wrap;

     }

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

        <div>适用人群:没有任何前端基础的小白</div>

        <div>费用:¥499</div>

      </div>

      <div class="shopping">

        <div class="btn">加入购物车</div>

      </div>

    </div>

    </section>  

</body>

</html>


写回答

1回答

小于飞飞

2018-04-28

登录的边框清除,设置   border: none; 样式,代码调整建议如下:div.section 的背景  background: rgba(173, 216, 230);设置错误,缺少透明度参数,如下background: rgba(173, 216, 230,0.8);

动手实践,希望帮你解答疑问,祝学习愉快。


0
haDaDaLa
h 非常感谢!
h018-04-28
共1条回复

0 学习 · 5012 问题

查看课程