老师,这样啊写对吗?

来源:3-10 编程练习

愁啥

2021-03-05 10:53:01

<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<title></title>
<style>
/*在此处补充代码*/
*{
padding: 0;
margin: 0;
}
.box{
height: 80px;
background: rgb(0, 0, 0);
display: flex;
justify-content: space-around;
align-items: center;
}
.logo{
width: 191px;
}
.logo img{
height: 57px;
}
ul{
width: 400px;
list-style: none;
display: flex;
justify-content: space-around;
}
ul li{
color: white;
width: 80px;
line-height: 80px;
}
.login{
vertical-align: middle;
line-height: 80px;
display: flex;
width: 100px;
justify-content: space-around;
}
input{
width: 34px;
height: 20px;
background-color: gold;
color: white;
border: none;
border-radius: 3px;
line-height: 20px;
}
</style>
</head>

<body>
<header class="box">
<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回答

好帮手慕夭夭

2021-03-05

同学你好,代码实现正确。继续加油,祝学习愉快~

0

0 学习 · 15276 问题

查看课程