flex 3-13编程练习
来源:3-13 编程练习
慕数据7542861
2018-09-10 14:20:38
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
*{
margin: 0;
padding: 0;
list-style-type: none;
color: rgb(255,255,255);
font-family: '微软雅黑';
}
header{
width: 100%;
height: 70px;
background-color: rgb(0,0,0);
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
justify-content: space-around;
}
header>*{
display: flex;
justify-content: center;
}
header>.logo,
header>.login{
width: 200px;
display: flex;
justify-content: center;
}
header>.nav{
width: 500px;
display: flex;
justify-content: space-around;
}
header>.logo>img{
width: 150px;
height: 50px;
}
header>.login>input{
background-color: orange;
padding: 5px;
border-radius: 5px;
outline: none;
border: 0;
margin-left: 30px;
}
</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回答
经测试效果是不错的哦,继续加油~~
相似问题