3-13编程练习

来源:3-13 编程练习

慕粉1110144175

2019-02-25 10:02:40

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
      /*在此处补充代码*/
      *{padding:0;margin:0;border:none;}
      header{display:flex;justify-content:space-around;align-items:center;background:#000;}
      .logo{display:flex;}
      .nav{color:#fff;list-style:none;display:flex;justify-content: space-between;width:30%;font-size: 18px;}
      .login{display:flex;justify-content:space-between;width:10%;}
      .login>input{background:orange;border-radius:3px;color:#fff;width:46px;padding: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回答

好帮手慕星星

2019-02-25

你好,代码实现布局效果是不错的,继续加油!

0

0 学习 · 5012 问题

查看课程

相似问题