请老师检查作业

来源:2-8 编程练习

听的说

2022-03-20 17:05:53

<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<title></title>
<style>
/*在此处补充代码*/
* {
padding: 0;
margin: 0;
}
img {
vertical-align: middle;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
height: 65px;
background-color: #000000;
padding: 0 300px;
}
header ul {
display: flex;
justify-content: space-between;
min-width: 500px;
}
header ul li {
color: #fff;
font-size: 18px;
list-style: none;
}
header ul {
display: flex;
justify-content: space-between;
}
.login {
width: 80px;
display: flex;
justify-content: space-between;
}
.login input {
font-size: 16px;
color: #fff;
border-radius: 4px;
border: none;
background-color: orange;
}
</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-03-20

同学你好,整体效果是可以的,建议优化:

1、去掉左右padding,调整为space-around

https://img.mukewang.com/climg/6236f2af0930a72805760288.jpg

2、按钮设置内边距,适当调整文字四周间距,效果会更好,另外,调整下外层盒子宽度。

https://img.mukewang.com/climg/6236f3010931a21204630419.jpg

祝学习愉快~

0

0 学习 · 17877 问题

查看课程