老师请帮我看一下作业
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>imooc</title>
<style>
*{
padding: 0;
margin: 0;
list-style: none;
}
.head{
width: 100%;
height: 100px;
background: black;
position:fixed;
top: 0;
}
.head ul{
height: 100px;
float: right;
}
.head ul li{
padding-right: 40px;
color: white;
float: left;
line-height: 100px;
font-size: 25px;
}
.con1{
margin-top: 100px;
width: 100%;
height: 1500px;
background:rgb(120, 196, 226) ;
padding-top: 5%;
}
.con2{
width:70%;
height: 1500px;
margin:0 auto;
}
.box1,.box2{
box-sizing: border-box;
width: 50%;
text-align: left;
float: left;
margin:0 auto ;
}
.career{background: palevioletred;}
h3,span,p{ line-height: 40px;}
.footer{
width: 100%;
height: 100px;
background: black;
position: fixed;
bottom: 0px;
}
.footer ul{
width:500px;
height:100px;
margin: 0 auto;
}
.footer ul li{
padding:10px;
display: inline;
color: white;
line-height: 100px;
}
</style>
</head>
<body>
<div class="head">
<img src="http://img1.sycdn.imooc.com/climg//58c0d2d900016ce303000100.png" alt="logo">
<ul class="head-nav">
<li>课程</li>
<li>职业路径</li>
<li>实战</li>
<li>猿问</li>
<li>手记</li>
</ul>
</div>
<div class="con1">
<div class="con2">
<div class="box1">
<h3>课程推荐</h3>
<div><span class="career">职业路径</span>    <span>HTML5与CSS实现动态网页</span></div>
<div><span class="career">职业路径</span>    <span>零基础入门Android语法与界面</span></div>
<div><span class="career">职业路径</span>    <span>iOS基础语法与常用组件</span></div>
<div><span class="career">职业路径</span>    <span>PHP入门开发</span></div>
<div><span class="career">职业路径</span>    <span>java入门开发</span></div>
</div>
<div class="box2">
<h3>相关课程</h3>
<p>HTML CSS JavaScrip</p>
<p>HTML5 CSS3 Jquery</p>
<p>移动端基础 移动APP端开发</p>
</div>
</div>
</div>
<div class="footer">
<ul class="foot-nav">
<li>网站首页</li>
<li>企业合作</li>
<li>人才招聘</li>
<li>联系我们</li>
<li>友情链接</li>
</ul>
</div>
</body>
</html>
正在回答
同学你好,页脚区域的导航项在水平方向上居中是有误差的,左右间距不一样,如下:

建议:给ul设置文字居中即可,例如:

如果我的回答帮到了你,欢迎采纳,祝学习愉快~
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星