下来导航条案例

Original 2018-12-27 16:20:12 196
abstract:<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>淘宝导航</title> <link rel="stylesheet" type="text/css" href="css/in

<!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">中国大陆 &nbsp; <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>

<ul>

<li>已买到的宝贝</li>

<li>我的足迹</li>

</ul>

</a>

<a href="" class="header-a"><span class="fa fa-star"></span>收藏夹 &nbsp;<i class="fa fa-angle-down" aria-hidden="true"></i>

<ul>

<li>收藏店铺</li>

<li>收藏宝贝</li>

</ul>

</a>

<a href=""><span class="fa fa-cart-plus" style="color: #FF5000;"></span>购物车 &nbsp;</a>

<a href="">商品分类 &nbsp;</a>

<a href="" class="header-a">卖家中心 &nbsp;<i class="fa fa-angle-down" aria-hidden="true"></i>

<ul>

<li>免费开店</li>

<li>已卖出宝贝</li>

<li>出售中宝贝</li>

<li>卖家服务市场</li>

<li>卖家培训中心</li>

<li>体验中心</li>

<li>问商友</li>

</ul>

</a>

<a href="" class="header-a">联系客服<i class="fa fa-angle-down" aria-hidden="true"></i>

<ul>

<li>消费者客服</li>

<li>卖家客服</li>

</ul>

</a>

<a href="" class="header-a"><span class="fa fa-star" style="color: #FF5000;"></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: #6c6c6c;font-size: 13px;}

li{list-style: none;}

.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;position: relative;}

.header-a:hover{background-color: #FFFFFF;}

.header-a ul{border: 1px solid #F5F5F5;display: none;border-top: none;}

.header-a:hover ul{display: block;position: absolute;width: 100px;}

.header-a ul li:hover{background-color: #f5f5f5;} 

.header-a:hover ul li{color: #6C6C6C;height: 30px;line-height: 30px;text-align: left;padding: 0px 3px;margin: 5px 0px;}

网站导航还没能做出来

Correcting teacher:天蓬老师Correction time:2018-12-27 17:05:39
Teacher's summary:padding: 0px 3px; 0 后面不要加 px

Release Notes

Popular Entries