这样可以吗
来源:3-10 编程练习
慕勒2048820
2019-05-30 20:36:49
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
/*在此处补充代码*/
header {
display:flex;
background:black;
justify-content:space-around;
align-items:center;
width:100%;
}
.logo {
display: block;
}
.nav {
display:flex;
color:#fff;
list-style:none;
justify-content:space-between;
width:33.3%;
}
.login {
display:flex;
justify-content:space-around;
width:15%;
}
input[type="button"] {
background:orange;
border:none;
height:28px;
border-radius: 10px;
}
</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-05-31
你好同学,结构实现的很棒。因为body有默认的间距,所以为它清除默认间距更好

如下:

祝学习愉快 ,望采纳。