请老师检查
来源:3-13 编程练习
			慕前端2064318
2019-08-14 22:33:48
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title></title>
<style>
/*在此处补充代码*/
header {
background-color: black;
display: flex;
justify-content: space-around;
align-items: center;
}
.nav {
width: 400px;
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
align-items: center;
}
li {
color: white;
list-style: none;
}
.login > input {
background-color: orange;
border-radius: 5px;
color: white;
border: none;
}
</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回答
同学你好,
练习整体布局是不错的,很棒哦!
小建议:
1、左侧logo图片与父容之间有间隙:

这是因为img是内联元素,有文字特性,默认存在间隙。建议将图片设置为块元素。参考:

2、右侧的两个按钮有些小:

可以设置下宽高,参考:

祝学习愉快!欢迎采纳~