abstract:<!DOCTYPE html><html><head><meta charset="UTF-8"><title>淘宝导航条</title><link rel="stylesheet" href="font-aw/css/font-awesome.min.css"
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>淘宝导航条</title>
<link rel="stylesheet" href="font-aw/css/font-awesome.min.css">
<style type="text/css">
*{margin: 0px;padding: 0px}
a{text-decoration: none;color: #6c6c6c;font-size: 13px}
li{list-style: none;}
.clear{clear: both;}
.header{width: 100%;background-color: #f5f5f5;}
.header_content{width: 1200px;margin:0px auto;line-height: 40px;}
.header_left{height: 40px;float: left;}
.header_left a{margin-right: 5px}
.header_content a:hover{color:#ff5000;}
.header_right{width:600px;height: 40px;float:right;}
.header_a{display: inline-block;height: 40px;width: 90px;text-align: center;position: relative;}
.header_a:hover{background-color: #fff}
.header_a ul{border:1px solid #f5f5f5;display: none;border-top: none;}
.header_a:hover ul{display: block;position: absolute;width: 100px}
.header_a ul li{color: #6c6c6c;height: 30px;line-height: 30px;text-align: left;padding: 0px 3px;margin: 5px 0px;}
.header_a ul li:hover{background-color: #f5f5f5;}
</style>
</head>
<body>
<div>
<div>
<div>
<a href="">中国大陆 <i class="fa fa-angle-down"></i>
<ul>
<li>已买到的宝贝</li>
<li>我的足迹</li>
<li>我的淘宝</li>
</ul></a>
<a href="" style="color:#ff5000">亲,请登录</a>
<a href="">免费注册</a>
<a href="">手机逛淘宝</a>
</div>
<div>
<a href="">我的淘宝 <i class="fa fa-angle-down"></i>
<ul>
<li>已买到的宝贝</li>
<li>我的足迹</li>
<li>我的淘宝</li>
</ul>
</a>
<a href="" ><span class="fa fa-cart-plus" style="color: #ff5000;"></span> 购物车</a>
<a href=""><span class="fa fa-star"></span> 收藏夹 <i class="fa fa-angle-down"></i>
<ul>
<li>已买到的宝贝</li>
<li>我的足迹</li>
<li>我的淘宝</li>
</ul></a>
<a href="">商品分类</a>
<a href="">卖家中心 <i class="fa fa-angle-down"></i>
<ul>
<li>已买到的宝贝</li>
<li>我的足迹</li>
<li>我的淘宝</li>
</ul></a>
<a href="">联系客服 <i class="fa fa-angle-down"></i>
<ul>
<li>已买到的宝贝</li>
<li>我的足迹</li>
<li>我的淘宝</li>
</ul></a>
<a href=""><span class="fa fa-align-justify" style="color: #ff5000;"></span>网站导航 <i class="fa fa-angle-down"></i>
<ul>
<li>已买到的宝贝</li>
<li>我的足迹</li>
<li>我的淘宝</li>
</ul></a>
</div>
</div>
<div></div>
</div>
</body>
</html>
总结:导航条难点在选择器的的层级关系的选取和设定属性.还有就是布局中的遮盖和显示.
Correcting teacher:查无此人Correction time:2019-06-14 09:22:20
Teacher's summary:完成的不错。很多写好的样式,可以保存下来,留着以后用。继续加油。