淘宝导航案例
关超2019-04-22 18:16:31205<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="font-awesome-4.7.0/css/font-awesome.min.css"/>
<title>无标题文档</title>
<style type="text/css">
*{ margin:0px ; padding:0px;}
#header{ background-color:#ccc; width:100%; height:40px;}
.header_content{ width:1200px; height:40px; background:#pink; margin:0px auto; line-height:40px;}
.header_content a:hover{ color:#ff5000}
.header_left{ height:40px ; float:left}
.header_left a{ margin-right:5px;}
.header_right{ height:40px; float:right}
.clear{ clear:both;}
a{ text-decoration:none; font-size:13px;}
.header_a{ display:inline-block; height:40px; width:90px; }
.header_a:hover{ background:#fff;}
</style>
</head>
<body>
<div id="header">
<div class="header_content">
<div class="header_left">
<a href="#" class="header_a"> 中国大陆 <i class="fa fa-chevron-down"></i></a>
<a href="#" style="color:#ff5000">亲,请登录</a>
<a href="#">免费注册</a>
<a href="#">手机逛淘宝</a>
</div>
<div class="header_right">
<a href="#" class="header_a">我的淘宝 <i class="fa fa-chevron-down"></i></a>
<a href="#"><span class="fa fa-cart-plus"></span>购物车</a>
<a href="#" class="header_a"><span class="fa fa-star"></span>收藏夹<i class="fa fa-chevron-down"></i></a>
<a href="#">商品分类</a>
<a href="#" class="header_a">买家中心<i class="fa fa-chevron-down"></i></a>
<a href="#">联系客服</a>
<a href="#">网站导航<i class="fa fa-chevron-down"></i></a>
</div>
<div class="clear"></div>
</div>
</div>
</body>
</html>