老师帮忙看看有什么需要改进优化
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>慕课网</title>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
ul {list-style: none;}
a {
color: white;
text-decoration: none;
font-family: 微软雅黑;
font-size: 20px;
}
body{background: #ADD8E6;}
.header{
width: 100%;
height: 100%;
background: black;
overflow: hidden;
zoom: 1;
min-width: 800px;
}
.logo{
height: 100px;
float:left;
}
.nav{
height: 100px;
float:right;
}
.logo img{display: block;}
.nav ul{
overflow: hidden;
zoom: 1;
margin-right:40px;
}
.nav ul li{
float: left;
}
.nav ul li a{
padding:0 20px;
height: 100px;
line-height: 100px;
display: block;
}
.main{
width: 100%;
height: 600px;
overflow: hidden;
zoom: 1;
margin: 0 auto;
max-width: 1000px;
}
.left{
float: left;
line-height: 40px;
width: 400px;
padding-top:100px;
margin-right:20%;
}
.right{
float: left;
line-height: 40px;
width: 400px;
padding-top:100px ;
}
.left ul li span{
background: #FF9999;
}
.footer{
width: 100%;
background: black;
position: fixed;
bottom: 0px;
overflow: hidden;
zoom: 1;
line-height: 100px;
}
.flist{
height: 100px;
text-align: center;
}
.flist li{
display: inline;
margin-right: 20px;
}
.flist li a{
padding:0px 20px;
}
</style>
</head>
<body>
<div class="header">
<div class="logo">
<img src="http://img1.sycdn.imooc.com/climg//58c0d2d900016ce303000100.png" />
</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="main">
<div class="left">
<h2>课程推荐</h2>
<ul>
<li><span>职业路径</span> HTML5与CSS3实现动态网页</li>
<li><span>职业路径</span> 零基础入门Android语法与界面</li>
<li><span>职业路径</span> IOS基础语法与常用控件</li>
<li><span>职业路径</span> PHP入门开发</li>
<li><span>职业路径</span> JAVA入门开发</li>
</ul>
</div>
<div class="right">
<h2>相关课程</h2>
<ul>
<li>HTML CSS JavaScript</li>
<li>HTML5 CSS3 jQuery</li>
<li>移动端基础 移动端APP开发</li>
</ul>
</div>
</div>
<div class="footer">
<ul class="flist">
<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>
</body>
</html>
正在回答
你好同学,整体页面效果实现的很棒。不需要优化了,继续加油。祝学习愉快 !
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星