Correcting teacher:天蓬老师
Correction status:qualified
Teacher's comments:字体图标的引用, 相当的专业, 看来你是做过前端, 至少是学习过吧, 看来咱们这期藏龙卧虎
效果如下
源码
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="iconfont.css">
<title>1220homework</title>
<style>
@font-face {
font-family: 'iconfont';
src: url('iconfont.eot');
src: url('iconfont.eot?#iefix') format('embedded-opentype'),
url('iconfont.woff2') format('woff2'),
url('iconfont.woff') format('woff'),
url('iconfont.ttf') format('truetype'),
url('iconfont.svg#iconfont') format('svg');
}
.iconfont {
font-family: "iconfont" !important;
font-size: 35px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
* {
padding: 0;
margin: 0;
}
a {
text-decoration: none;
color: #414141;
}
.main {
width: 1200px;
hight: 1000px;
margin: 0 auto;
/*background-color: lightpink;*/
}
.img1 {
width: 280px;
height: 65px;
float: left;
}
.search {
float: left;
margin-left: 300px;
width: 300px;
height: 65px;
line-height: 65px;
margin-top: 10px;
position: relative;
}
.search span {
display: inline-block;
width: 300px;
height: 45px;
vertical-align: middle;
border: 1px solid;
-webkit-border-radius: 13px;
-moz-border-radius: 13px;
border-radius: 13px;
}
.search p {
position: absolute;
font-size: 25px;
right: 15px;
top: 0px;
}
.img2 {
float: right;
width: 280px;
height: 65px;
line-height: 65px;
margin-top: 10px;
}
.daohang {
height: 75px;
float: left;
overflow: hidden;
margin-top: 15px;
font-size: 15px;
/*background-color: blue;*/
}
.pic {
overflow: hidden;
float: left;
margin-right: 10px;
border-right: 1px rgba(68, 83, 70, 0.67) solid;
}
span.s {
color: red;
width: 45px;
float: left;
margin-right: 5px;
}
.nav1,.nav2,.nav3,.nav4 {
width: 40px;
float: left;
margin-left: 0;
}
.links {
width: 150px;
float: left;
margin-right: 55px;
}
.links4 {
width: 150px;
float: left;
}
</style>
</head>
<body>
<div class="main">
<header>
<div class="img1">
<img src="./pic/logo.png" alt="">
</div>
<div class="search">
<span></span>
<p class="iconfont icon-sousuo2"></p>
</div>
<div class="img2">
<a href="" class="iconfont icon-huiyuan1"></a>
<a href="" class="iconfont icon-danmu1"></a>
<a href="" class="iconfont icon-fabu"></a>
<a href="" class="iconfont icon-fangda"></a>
<a href="" class="iconfont icon-huiyuan2"></a>
<a href="" class="iconfont icon-dianzan"></a>
</div>
</header>
<div class="daohang">
<div class="daohang1">
<!--左侧图标与描述-->
<div class="pic">
<span class="iconfont icon-gongdan s"></span>
<div class="nav1">
<span>资讯</span>
<span>学习</span>
</div>
</div>
<!--右侧导航链接-->
<div class="links">
<a href="">器材</a>
<a href="">大师</a>
<a href="">学院</a>
<a href="">实战</a>
<a href="">大赛</a>
<a href="">裤子</a>
<a href="">影视</a>
<a href="">其它</a>
</div>
<div class="pic">
<span class="iconfont icon-renwujincheng s"></span>
<div class="nav2">
<span>爱好</span>
<span>姐妹</span>
</div>
</div>
<!--右侧导航链接-->
<div class="links">
<a href="">有品</a>
<a href="">图片</a>
<a href="">喝水</a>
<a href="">飞机</a>
<a href="">坦克</a>
<a href="">气球</a>
<a href="">毛线</a>
<a href="">其它</a>
</div>
<div class="pic">
<span class="iconfont icon-gongdan s"></span>
<div class="nav3">
<span>软件</span>
<span>技能</span>
</div>
</div>
<!--右侧导航链接-->
<div class="links">
<a href="">学习</a>
<a href="">爱国</a>
<a href="">敬业</a>
<a href="">友善</a>
<a href="">富强</a>
<a href="">互助</a>
<a href="">仁义</a>
<a href="">其它</a>
</div>
<div class="pic">
<span class="iconfont icon-DOC s"></span>
<div class="nav4">
<span>编程</span>
<span>美女</span>
</div>
</div>
<!--右侧导航链接-->
<div class="links4">
<a href="">吃饭</a>
<a href="">周易</a>
<a href="">黄山</a>
<a href="">合肥</a>
<a href="">上海</a>
<a href="">杭州</a>
<a href="">北京</a>
<a href="">其它</a>
</div>
</div>
</div>
<div class="slider">
<a href=""><img src="pic/2.jpg" alt=""></a>
<a href=""><img src="pic/banner-right.jpg" alt=""></a>
</div>
</div>
</body>
</html>