老师,请看一下
来源:3-13 编程练习
 
			非凡哥大战哥斯拉
2018-12-29 12:08:07
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
      header{
          background-color:black;
          width:100%;
          height:70px;
          display:flex;
          justify-content:space-around;
          align-items:center
          
      }
      ul{
          list-style:none;
          color:white;
          width:30%;
          display:flex;
          justify-content:space-around;
      }
      .logo{
          
      }
      .login{
          display:flex;
          width:10%;
          justify-content:space-between;
      }
      .login input{
          background:orange;
          color:white;
          height:30px;
          
      }
    </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回答
同学你好,整体布局实现了,但是在样式上可以再美化一下,参考:
清除所有标签的内容边距:

右侧按钮去掉边框,设置宽度和圆角:

自己完善测试下,祝学习愉快!
相似问题