老师检查一下作业
来源:2-8 编程练习
慕函数0445997
2023-01-05 16:47:19
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
/*在此处补充代码*/
*{
margin: 0;
padding: 0;
}
li{
list-style: none;
}
header{
height: 57px;
background-color: #000;
display: flex;
justify-content: space-around;
}
.nav{
width: 500px;
display: flex;
justify-content: space-between;
align-items: center;
}
.nav li{
color: #fff;
}
.login{
width: 100px;
display: flex;
justify-content: space-between;
align-items: center;
}
.login input{
background-color: orange;
color: #fff;
width: 40px;
border-radius: 5px;
}
</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回答
imooc_慕慕
2023-01-05
同学你好,代码整体思路是可以的,优化参考:
给按钮添加一个padding值,效果更美观一点。

祝学习愉快~
相似问题