老师帮忙检查一下
来源:2-2 编程练习
DANLAI
2020-05-03 07:38:03
<!DOCTYPE html>
<html>
<head>
<title>作业1</title>
<style type="text/css">
*{
margin: 0;
padding:0;
}
.head1{
float: left;
width: 100%;
height: 100px;
/*background: gray;*/
}
.logo{
float: left;
}
.logo img{
width: 200px;
height: 80px;
line-height: 100px;
}
.nav{
float: right;
}
.nav ul{
padding-right: 50px;
}
.nav ul li{
float: left;
list-style: none;
display: block;
width: 80px;
height: 100px;
line-height: 100px;
font-size: 16px;
}
</style>
</head>
<body>
<div class="head1">
<div class="logo"><img src="http://climg.mukewang.com/595dd5120001736902000080.png"></div>
<div class="nav">
<ul>
<li>前端</li>
<li>后端</li>
<li>移动端</li>
<li>数据库</li>
</ul>
</div>
</div>
</body>
</html>
1回答
好帮手慕夭夭
2020-05-05
同学你好,代码实现正确。继续加油,祝学习愉快 ~
相似问题