请检查代码

来源:3-10 编程练习

YoLo_H

2020-07-23 18:15:12

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
      /*在此处补充代码*/
      *{
          margin:0;
          padding:0;
      }
      header{
          margin: 0 auto;
          height:104px;
          display:flex;
          background-color:black;
          justify-content: space-around;
          width:100%;
      }
      div.logo{
          float:left;
          display: flex;
          justify-content: center;
          align-items: center;
      }
      ul.nav{
          float:left;
          display: flex;
          justify-content: space-around;
          align-items: center;
          color: #bdb8b8;
          list-style-type: none;
          width:520px;
      }
      div.login{
          float:left;
          display: flex;
          justify-content: space-between;
          align-items: center;
          width:100px;
      }
      div.login input{
          color: #FFFFFF;
         background-color:#ffbd46;
         border:none;
         width:40px;
         height:30px;
         border-radius:5px;
      }
    </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回答

好帮手慕码

2020-07-23

同学你好,代码正确,很棒,祝学习愉快!

0

0 学习 · 6815 问题

查看课程