淘宝导航栏布局排列及font-awesome使用

原创 2018-11-20 22:06:34 287
摘要:*{margin: 0px;padding: 0px;}a{text-decoration: none;color: #000;font-size: 13px;}.clear{clear:both;}.header{width: 100%;background-color: #F5F5F5;}.header_content{width: 1200px;margin: 0px auto;line-h
*{margin: 0px;padding: 0px;}
a{text-decoration: none;color: #000;font-size: 13px;}
.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{height: 40px;float:right;}
.header_a{display: inline-block;height: 40px;width: 90px;text-align: center;}
.header_a:hover{background-color: #fff;}

--------------------------------------------------------------------------------
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>测试页</title>
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/font-awesome-4.7.0/css/font-awesome.min.css">
</head>
<body>
    <div>
        <div>
            <div>
                <a href="">中国大陆&nbsp;&nbsp;<i class="fa fa-angle-down"></i></a>
                <a href="" style="color: #FF5000;" >亲,请登录</a>
                <a href="">免费注册</a>
                <a href="">手机逛淘宝</a>
            </div>
            <div>
                <a href="">我的淘宝<i class="fa fa-angle-down"></i></a>
                <a href=""><span class="fa fa-cart-plus"></span>购物车</a>
                <a href=""><span class="fa fa-star"></span>收藏夹<i class="fa fa-angle-down"></i></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-angle-down"></i></a>
                <a href="">网站导航<i class="fa fa-angle-down"></i></a>
            </div>
        </div>
        <div></div>
    </div>
</body>
</html>


批改老师:韦小宝批改时间:2018-11-21 09:09:08
老师总结:代码写的很完整!不错!但是缺少总结!代码缺少高亮!下次记得带上总结以及代码高亮哦!继续加油吧!

发布手记

热门词条