老师请检查

来源:3-13 编程练习

mokongh

2019-05-07 20:02:25

<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8">

    <title></title>

    <style>

      /*在此处补充代码*/

      *{

        margin: 0;

        padding: 0;

      }

      header{

          width: 100%;

          height: 56px;

          display: flex;

          flex-direction: row;

          justify-content: space-around;

          background: #000;

          align-items: center;

      }

       .logo{

        width: 190px;

        height: 56px;

       }

       .logo img{

        width: 100%;

        height: 100%;

       }

      .nav{

          display: flex;

          flex-direction: row;

          justify-content: space-around;

          align-items: center;

          color: #fff;

          

      }

      .nav li{

          list-style: none;

          line-height: 16px;

          text-align: center;

          width: 80px;

          color: #fff;

      }

      .login{

          width: 100px;

          display: flex;

          flex-direction: row;

          justify-content: space-around;

          align-items: center;

      }

      .login input{

          width: 30px;

          border: none;

          background: #ff0;

          color: #000;

      }

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

同学你好, 代码效果实现了。

不过可以给右侧的按钮添加一个border-radius属性, 适当调整按钮宽高。 让效果更美观哦~示例:

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

如果帮助到了你,欢迎采纳!

祝学习愉快~~~~


0

0 学习 · 5012 问题

查看课程

相似问题