麻烦老师检查 有没有需要修改的

来源:3-10 编程练习

dww1

2022-05-29 21:40:12

<style>
        *{
            margin: 0;
            padding: 0;
        }
        header{
            display: flex;
            align-items: center;
            justify-content: space-around;
            background-color: #000;
        }
        .logo{
            display: flex;
           
        }
        header ul.nav{
            list-style: none;
            display: flex;
            justify-content: center;
        }
        header ul.nav li{
            width: 100px;
            padding: 20px;
            font-size: 18px;
            color: #fff;
        }
        .login{
            width: 200px;
            display: flex;
            justify-content: space-around;
        }
        .login input{
            width: 50px;
            height: 40px;
            font-size: 18px;
            background-color: orange;
            color: #fff;
            border-radius: 10px;
            text-align: center;
        }
    </style>
 <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>


写回答

1回答

好帮手慕慕子

2022-05-30

同学你好,整体思路是可以的,不过其中有两个细节需要调整下,如下:

1、导航项在li元素中没有水平居中显示,如下图所示:

https://img.mukewang.com/climg/629431030945cc8a13540254.jpg

建议修改:

https://img.mukewang.com/climg/6294313c092bbe2004280254.jpg

2、按钮有默认的边框样式,效果不美观,如下图所示:

https://img.mukewang.com/climg/6294315909500e1204680194.jpg

建议优化:

https://img.mukewang.com/climg/62943186092b114a07080370.jpg

祝学习愉快~

0

0 学习 · 15276 问题

查看课程