淘宝导航css下拉

原创 2018-11-10 15:22:45 5
摘要:<!DOCTYPE html><html><head><meta charset="UTF-8"><title>淘宝导航</title><link rel="stylesheet" type="text/css" href="./css/study8.
<!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/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;">中国大陆 &nbsp;<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">我的淘宝 &nbsp;<i class="fa fa-angle-down"></i>
                  <ul>
                   	<li>已买到的宝贝</li>
                   	<li>我的足迹</li>
                   </ul>
               </a>
               <a href=""><span class="fa fa-shopping-cart" style="color:red;"></span> 购物车 &nbsp;<i class="fa fa-angle-down"></i></a>
               <a href="" class="head_a"><span class="fa fa-shopping-star"></span>收藏夹 &nbsp;<i class="fa fa-angle-down"></i>
                  <ul>
                    <li>收藏的宝贝</li>
                    <li>收藏的店铺</li>
                  </ul>
               </a>
               <a href="">商品分类</a>
               <a href="" class="head_a">卖家中心 &nbsp;<i class="fa fa-angle-down"></i>
                  <ul>
                    <li>免费开店</li>
                    <li>已卖出的宝贝</li>
                    <li>出售中的宝贝</li>
                    <li>卖家服务市场</li>
                    <li>体检中心</li>
                    <li>问商友</li>
                  </ul>
               </a>
               <a href="" class="head_a">联系客服 &nbsp;<i class="fa fa-angle-down"></i></a>
               <a href="" class="head_a"><span class="fa fa-list-ul" style="color:red;"> 网站导航 &nbsp;<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;}
li{list-style: none;}
.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;position: relative;}
.head_a:hover{background: #fff;}
.head_a ul{border: 1px solid #F5F5F5;display: none;border-top: none;}
.head_a:hover ul{display: block;position: absolute;width: 90px;}
.head_a ul li:hover{background: #F5F5F5;}
.head_a ul li{color: #6C6C6C;height: 30px;line-height: 30px;text-align: left;padding: 0px 3px;margin: 5px 0px;}


批改老师:韦小宝批改时间:2018-11-10 16:08:48
老师总结:下次代码记得加点高亮!完成的很不错!继续加油吧!

发布手记

热门词条