这样写可以吗?

来源:3-13 编程练习

臭超人

2018-04-04 13:43:19

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
      /*在此处补充代码*/
      *{
          margin:0;
          padding:0;
          list-style:none;
      }
      header{
          background:#000;
          color:#ccc;
          display:flex;
          flex-wrap:nowrap;
          justify-content:space-around;
          align-items:center;
      }
      ul[class="nav"],div[class="login"]{
          display:flex;
          justify-content:space-around;
      }
      ul[class="nav"]>li{
          margin-left:40px;
      }
      div[class="login"] > input{
          height:24px;
          width:40px;
          background:yellow;
          border:none;
          border-radius:2px;
          margin-left:20px;
      }
    </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-04-04

经测试效果是可以的哦,继续加油~~

0

0 学习 · 5012 问题

查看课程