对做导航的一些技巧有了新的认识,以前总要想好一会儿某种效果怎么实现,现在发现,原来是这么简单
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="css/font-awesome-4.7.0/css/font-awesome.min.css">
<title>常见导航作业</title>
</head>
<body>
<div>
<div>
<div>
<a href="#">中国大陆 <i class="fa fa-angle-down"></i></a>
<a href="#">亲,请登陆</a>
<a href="#">免费注册</a>
<a href="#">手机逛淘宝</a>
</div>
<div>
<a href="#" >我的淘宝 <i class="fa fa-angle-down"></i></a>
<a href="#"><i class='fa fa-cart-plus'></i> 购物车 <i class="fa fa-angle-down"></i></a>
<a href="#"><i class='fa fa-star'></i> 收藏夹 <i class="fa fa-angle-down"></i></a>
<a href="#">商品分类</a>
<a href="#">卖家中心 <i class="fa fa-angle-down"></i></a>
<a href="#">联系客服 <i class="fa fa-angle-down"></i></a>
<a href="#"><i class='fa fa-bars'></i> 网站导航 <i class="fa fa-angle-down"></i></a>
</div>
<div></div>
</div>
</div>
</body>
</html>
/*reset*/
*{margin:0;padding:0};
.clear{clear:both}
/*header*/
.header{width:100%;height:30px;background:#ccc}
.header_content{margin:0 auto;width:1200px;height:30px;line-height:30px;text-align:center}
.header_left{height:30px;float:left}
.header_right{width:800px;height:30px;float:right}
.header_content a{text-decoration:none;color:#000;font-size:12px;width:80px;display:inline-block}
.header_content a:hover{color:#f00}
.menu:hover{background:#fff}