abstract:!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>淘宝导航</title> <link rel="stylesheet" type="text/css" href="css/index.
!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>淘宝导航</title>
<link rel="stylesheet" type="text/css" href="css/index.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="header-content">
<div class="header-left">
<a href="" class="header-a">中国大陆 <i class="fa fa-angle-down" aria-hidden="true"></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-angle-down" aria-hidden="true"></i></a>
<a href="" class="header-a"><span class="fa fa-star"></span>收藏夹 <i class="fa fa-angle-down" aria-hidden="true"></i></a>
<a href=""><span class="fa fa-cart-plus"></span>购物车 </a>
<a href="">商品分类 </a>
<a href="" class="header-a">卖家中心 <i class="fa fa-angle-down" aria-hidden="true"></i></a>
<a href="" class="header-a">联系客服 <i class="fa fa-angle-down" aria-hidden="true"></i></a>
<a href="" class="header-a"><span class="fa fa-star"></span>网站导航<i class="fa fa-angle-down" aria-hidden="true"></i></a>
</div>
</div>
</div>
<div class="clear">
</div>
</body>
</html>
*{margin: 0px;padding: 0px;}
a{text-decoration: none;color: #ooo;font-size: 13px;}
.clear{clear: both;}
.header{width: 100%;height: 40px;background-color: #f5f5f5;}
.header-content{width: 1200px;height: 40px;margin: 0px auto;line-height: 40px;}
.header-left{float: left;}
.header-left a{margin-right: 5px;}
.header-content a:hover{color: #ff5000;}
.header-right{float: right;}
.header-a{display: inline-block;height: 40px;width: 90px;text-align: center;}
.header-a:hover{background-color: #FFFFFF;}
从这个案例可以把前面课程学到的知识都进行了运用
Correcting teacher:天蓬老师Correction time:2018-12-27 15:48:23
Teacher's summary:类样式的命名 ,很规范, 很好