老师,请问这样可以吗
来源:3-10 编程练习
程序媛小灯
2021-03-16 20:00:23
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
/*在此处补充代码*/
*{
margin: 0;
padding: 0;
}
header{
display: flex;
justify-content: space-around;
align-items: center;
background-color: black;
}
.nav{
display:flex;
justify-content: space-around;
align-items: center;
list-style: none;
color:white;
width:50%;
}
.login {
display:flex;
/*align-content: center;*/
justify-content: space-around;
width: 10%;
}
.login input{
background-color: orange;
color: white;
border-radius: 10%;
}
</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回答
同学你好,代码大体是对的,只是按钮有默认边框,样式不好看:
建议去掉边框,如下:
祝学习愉快!
相似问题