老师 这样可以吗
来源:3-13 编程练习
慕运维2135045
2018-10-25 18:11:39
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
header{
display: flex;
flex-wrap:nowrap;
justify-content: space-around;
align-items: center;
background: #000;
}
li{
color: #fff;
list-style: none;
font-size: 24px;
}
.nav{
width:450px;
display: flex;
flex-wrap:nowrap;
justify-content: space-around;
align-items: stretch;
}
.login{
width:180px;
display: flex;
flex-wrap:nowrap;
justify-content: space-around;
align-items: stretch;
}
input{
background:orange;
color: #fff;
font-size: 24px;
}
</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回答
好帮手慕夭夭
2018-10-25
你好同学 ,建议设置初始化样式 如下:

并且按钮可以去掉边框 , 设置圆角 , 根据效果图再优化一下样式 ,如下:

完善一下吧 , 祝学习愉快 ,望采纳
相似问题