老师,可以吗

来源:3-13 编程练习

qq_深海_35

2019-01-28 16:59:42

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
      /*在此处补充代码*/
      * {
        margin: 0;
        padding: 0;
      }
      header {
        display: -webkit-flex;
        display: -moz-flex;
        display: -ms-flex;
        display: flex;
        justify-content: space-around;
        align-items: center;
        background-color: #000;
      }
      .nav {
        list-style: none;
        color: #fff;
        display: -webkit-flex;
        display: -moz-flex;
        display: -ms-flex;
        display: flex;
        justify-content: space-between;
        width: 30%;
      }
      .login {
        display: -webkit-flex;
        display: -moz-flex;
        display: -ms-flex;
        display: flex;
        justify-content: space-between;
        width: 120px;
      }
      .login > input {
        background-color: orange;
        border: none;
        outline: none;
        color: #fff;
        border-radius: 3px;
        line-height: 20px;
        width: 50px;
      }
    </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-01-28

你好,代码实现效果是可以的,右侧按钮的高度可以使用行高再撑大些。

祝学习愉快!

0

0 学习 · 5012 问题

查看课程