问个问题~~~
来源:3-13 编程练习
Oo君陌oO
2019-02-14 16:46:32
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
html{
font-size:16px;
}
*{
padding:0;
margin:0;
}
header{
background:black;
display:flex;
justify-content:space-around;
align-items:center;
color:#fff;
font-size:1.1rem;
}
.nav{
list-style:none;
display:flex;
width:30%;
justify-content:space-between;
}
.login{
display:flex;
width:8%;
justify-content:space-between;
}
.login input{
background:orange;
color:#fff;
border-radius:5px;
width:2.3rem;
height:1.8rem;
border:none;
}
</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回答
你好,代码实现效果是可以的,右侧按钮是可以设置固定间距的,实现方式不唯一。
祝学习愉快!
相似问题