flex 3-13 编程练习

来源:3-13 编程练习

离离钟

2018-09-09 12:23:41

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
      /*在此处补充代码*/
      header {
          background:black;
          display:flex;
          justify-content: space-around;
          align-items: center;
          width:100%;
      }
      .logo{
          width:20%;
          text-align:center;
      }
      ul {
          color:white;
          list-style:none;
          display:flex;
          justify-content: space-around;
          width: 40%;
      }
      
      .login {
          display: flex;
          justify-content: space-around;
          width: 15%;
      }
      input {
          background:orange;
          border-radius:5px;
          border:1px solid orange;
          color:white;
      }
    </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回答

好帮手慕糖

2018-09-10

你好,建议:可以使用通配符除去下元素的内外边距,例:

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

祝学习愉快~

0

0 学习 · 5012 问题

查看课程

相似问题