请老师检查作业

来源:2-8 编程练习

晓之蛇

2022-06-04 21:29:28

老师您好,


请老师检查作业,谢谢

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
        /*在此处补充代码*/
        /* css-reset */
        * {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }
        ul {
            list-style: none;
        }
        /* header整体布局 */
        header {
            width: 100%;
            background-color: black;
            color: #fff;
            display: flex;
            justify-content: space-around;
            align-items: center;
        }
        /* 中间导航项布局 */
        header .nav {
            width: 30%;
            cursor: pointer;
            display: flex;
            justify-content: space-around;
        }
        /* 右侧按钮布局 */
        header .login {
            width: 10%;
            display: flex;
            justify-content: space-around;
        }
        header .login input[type='button'] {
            /* button reset */
            outline: none;
            background: none;
            border:none;
            cursor: pointer;
            background-color: orange;
            color: #fff;
            padding: 5px;
            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回答

好帮手慕久久

2022-06-05

同学你好,代码正确且不需要优化,赞!

祝学习愉快!

0

0 学习 · 17877 问题

查看课程