老师请检查代码
来源:3-10 编程练习
hehe纷扬
2021-03-12 18:14:22
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title></title>
<style>
/*在此处补充代码*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
header {
background-color: #000;
width: 100%;
display: flex;
justify-content: space-around;
align-items: center;
}
.logo img {
vertical-align: middle;
}
.nav {
display: flex;
justify-content: space-around;
width: 500px;
}
.nav li {
color: #fff;
float: left;
list-style: none;
/* padding: 0 20px; */
}
.login {
display: flex;
justify-content: space-around;
width: 120px;
}
.login input {
background-color: #ffa500;
border: none;
color: #fff;
border-radius: 10%;
padding: 2px 3px;
}
</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回答
同学你好,代码实现正确。继续加油,祝学习愉快~
相似问题