麻烦老师检查一下

来源:3-10 编程练习

慕神9465694

2019-11-01 20:19:21

<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8">

    <title></title>

    <style>

      /*在此处补充代码*/

      *{

        margin:0;

        padding:0;

        color: white;

      }

      header{

        background: black;

        display: flex;

        justify-content: space-around;

        align-items: center;

      }

      .nav{

        width: 400px;

        display: flex;

        justify-content: space-between;

      }

      .nav li{

        list-style-type: none;

      }

      .login{

        display: flex;

        justify-content: space-between;

        width: 120px;

      }

      input{

        background:orange;

        padding: 5px 10px;

        border:none;

        border-radius: 5px;

      }

      img{

        display: block;

      }

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

同学你好!
代码效果实现正确。

如果帮到了你,欢迎采纳,祝学习愉快~

0

0 学习 · 6815 问题

查看课程