我的代码是否正确?
来源:2-2 编程练习
3颗猫饼干
2019-09-17 14:51:21
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>2-2编程练习</title>
<style type="text/css">
*{
margin: 0;
padding:0;
}
/*此处写代码*/
.header{
width: 100%;
height: 100px;
}
.header .logo img{
width: 200px;
height: 80px;
margin-left: 100px;
margin-top: 10px;
float: left;
}
.header .nav{
height: 100px;
float: right;
}
.header .nav ul{
margin-right: 100px;
}
.header .nav ul li{
float: left;
list-style: none;
width: 80px;
font-family: "微软雅黑";
font-size: 15px;
font-weight: bold;
line-height: 100px;
text-align: center;
}
</style>
</head>
<body>
<!-- 头部 -->
<div class="header">
<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回答
好帮手慕嘟嘟
2019-09-17
同学你好,
老师运行了你的代码,效果是正确的,继续努力哦~
如果我的回答帮助了你,欢迎采纳,祝学习愉快~
相似问题