还有哪里需要改进吗

来源:3-10 编程练习

97_x

2019-06-17 14:10:58

<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8">

    <title></title>

    <style>

    *{

        margin:0;

        padding:0;

        list-style:none;

    }

    header{

        width:100%;

        display:flex;

        align-items:center;

        justify-content:space-around;

        background:#000;

    }

    .logo{

        display:flex;

        align-items:center;

        justify-content:space-around;

        width:200px;

    }

    .nav{

        width:450px;

        display:flex;

        align-items:center;

        justify-content:space-around;

    }

    .nav li{

        width:60px;

        color:#fff;

    }

    .login{

        display:flex;

        align-items:center;

        justify-content:space-around;

        width:100px;

    }

    .login input{

        width:30px;

        background:orange;

        border:none;

        border-radius:3px;

        color:#666;

    }

    /*在此处补充代码*/

    </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>

</body>

</html>


写回答

1回答

好帮手慕夭夭

2019-06-17

你好同学,按钮样式可以优化一下,如下

把按钮的宽度去掉,设置一些填充效果,并把字体颜色改为白色

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

祝学习愉快,望采纳。

0

0 学习 · 6815 问题

查看课程