3-13练习
来源:3-13 编程练习
qq_紾悕_1
2019-05-07 20:55:35
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
/*在此处补充代码*/
*{
margin:0;
padding:0;
}
header{
width:1200px;
height:66px;
background:#000;
display:flex;
justify-content:space-around;
align-items:center;
}
.nav{
display:flex;
color:#fff;
list-style:none;
width:400px;
justify-content:space-between;
}
.login{
width:100px;
display:flex;
align-items:center;
justify-content:space-between;
}
input{
width:38px;
height:30px;
border:none;
color:#fff;
border-radius:5px;
background: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回答
你好同学,布局实现了。但是建议整个头部宽度设置为100%效果更好,如下完善即可

祝学习愉快 ,望采纳。
相似问题