请老师检查代码♥

来源:2-9 编程练习

xcn_aaaa

2022-12-06 21:39:19

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
      /*在此处补充代码*/
      * {
        margin: 0;
        padding: 0;
      }
      li {
        list-style: none;
      }
      header {
        display: flex;
        background-color: #000;
        height: 60px;
        line-height: 60px;
        /* padding: 0 60px; */
        justify-content: space-around;
      }
      .nav {
        width: 500px;
        display: flex;
        justify-content: space-between;
      }
      .nav li {
        color: #fff;

      }

      .login input[type="button"] {
        width: 40px;
        height: 25px;
        border-radius: 4px;
        color: white;
        background-color: orange;
      }
    </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回答

好帮手慕久久

2022-12-07

同学你好,代码是不是粘贴错了。如下练习的代码已经帮同学检查过了:https://class.imooc.com/lesson/2141#mid=53792

同学是不是想提交2-9的练习?

https://class.imooc.com/lesson/2141#mid=53793

如果是的话,把代码回复一下,老师再帮你解答。

祝学习愉快!

0

0 学习 · 17877 问题

查看课程

相似问题