老师,请检查一下代码。。

来源:3-10 编程练习

聪U

2021-05-09 18:20:40

相关代码:

​<!--
* @Author: your name
* @Date: 2021-05-09 17:55:51
* @LastEditTime: 2021-05-09 18:18:23
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \移动开发入门\编程练习1.html
-->
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, initial-scale=1,user-scalable=no,maximum-scale=1,minimum-scale=1">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
}
header {
display: flex;
background-color: black;
justify-content: space-around;
/* border: 1px solid #000; */
align-items: center;
}
.nav {
display: flex;
width: 700px;
/* border: 1px solid #000; */
justify-content: space-around;
}
.nav li {
list-style-type: none;
font-size: 20px;
color: white;
}

.login {
/* border: 1px solid #000; */
display: flex;
width: 100px;
justify-content: space-between;
}

.login input {
width: 40px;
height: 30px;
border: none;
outline: none;
color: white;
border-radius: 6px;
background-color: orange;
cursor: pointer;
}
</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回答

好帮手慕久久

2021-05-09

同学你好,代码写的不错,不需要优化,很棒,祝学习愉快!

0

0 学习 · 15276 问题

查看课程