请老师看一下
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
/*此处写代码*/
*{ margin: 0 ;
text-decoration: none;
padding: 0;}
.header{
position: fixed;
background-color: black;
width: 100%;
height: 100px;
}
.header .logo{
float: left;
}
.header .nav{
float: right;
}
img{
display: block;
}
li{
display: inline-block;
}
a{
font-weight: bold;
color:white;
line-height: 100px;
font-family: "宋体";
font-size: 20px;
margin-right: 30px;
}
.container img{margin:0;width: 100%;}
.footer{background-color: black;
position:fixed;
width: 100%;
height: 100px;
text-align: center;
bottom: 0; }
</style>
</head>
<body>
<!-- 此处写代码 -->
<div class="content">
<div class="header">
<div class="logo"><a href="#"><img src="http://img1.sycdn.imooc.com/climg//58c0d2d900016ce303000100.png"></a></div>
<div class="nav">
<ul>
<li><a href="#">课程</a></li>
<li><a href="#">职业路径</a></li>
<li><a href="#">实战</a></li>
<li><a href="#">猿问</a></li>
<li><a href="#">手记</a></li>
</ul>
</div>
</div>
<div class="container">
<img src="http://img1.sycdn.imooc.com/climg//58c0eda50001e12416000480.jpg">
<img src="http://img1.sycdn.imooc.com/climg//58c0edb80001c9f216000480.jpg">
<img src="http://img1.sycdn.imooc.com/climg//58c0edc9000100d516000480.jpg">
</div>
<div class="footer">
<ul>
<li><a href="#">网站首页</a></li>
<li><a href="#">企业合作</a></li>
<li><a href="#">人才招聘</a></li>
<li><a href="#">联系我们</a></li>
<li><a href="#">常见问题</a></li>
<li><a href="#">友情链接</a></li>
</ul>
</div>
</div>
</body>
</html>
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星