学习了本节课,学会了页面导航的简单布局
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>淘宝导航</title>
<link rel="stylesheet" type="text/css" href="./css/study8.css">
<link rel="stylesheet" type="text/css" href="./css/font-awesome-4.7.0/css/font-awesome.min.css">
</head>
<body>
<div class="header">
<div class="head_content">
<div class="head_left">
<a href="" class="head_a" style="color:#3C3C3C;">中国大陆 <i class="fa fa-angle-down"></i></a>
<a href="" style="color: #F22E00;">亲,请登录</a>
<a href="">免费注册</a>
<a href="">手机逛淘宝</a>
</div>
<div class="head_right">
<a href="" class="head_a">我的淘宝 <i class="fa fa-angle-down"></i></a>
<a href=""><span class="fa fa-shopping-cart" style="color:red;"></span> 购物车 <i class="fa fa-angle-down"></i></a>
<a href="" class="head_a"><span class="fa fa-shopping-star"></span>收藏夹 <i class="fa fa-angle-down"></i></a>
<a href="">商品分类</a>
<a href="" class="head_a">卖家中心 <i class="fa fa-angle-down"></i></a>
<a href="" class="head_a">联系客服 <i class="fa fa-angle-down"></i></a>
<a href="" class="head_a"><span class="fa fa-list-ul" style="color:red;"> 网站导航 <i class="fa fa-angle-down"></i></a>
</div>
</div>
<div class="clear"></div>
</div>
</body>
</html>
*{margin: 0px;padding: 0px;}
a{text-decoration: none;font-size: 12px;}
.clear{clear: both;}
.header{width: 100%;height: 40px;background: #F5F5F5;}
.head_content{width: 1200px;height: 40px;margin: 0 auto;line-height: 40px;}
.head_content a:hover{color: #F22E00}
.head_left{height: 40px;float: left;}
.head_left a{margin-right: 5px;color: #6C6C6C;}
.head_right{width: 600px;height: 40px;float: right;}
.head_a{display: inline-block;width: 80px;height: 40px;text-align: center;}
.head_a:hover{background: #fff;}