仿照淘宝网首页顶部部分(重新提交)

原创 2018-11-20 23:18:13 245
摘要:<!DOCTYPE html><html><head><meta charset="UTF-8"><title>仿照淘宝网首页顶部部分</title><style type="text/css">*{padding: 0px; margin: 0px;}.clear{clea

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>仿照淘宝网首页顶部部分</title>

<style type="text/css">

*{padding: 0px; margin: 0px;}

.clear{clear: both;}

.header{width: 100%;height: 40px;background: #F5F5F5; line-height: 40px;}

.header_content{ width: 1200px;margin: 0px auto;}

.header_content a{color: #6C6C6C;display: inline-block;margin-right: 8px; font-size: 13px;}

.header_content a:hover{background: #FFF;color:red;}

.header_content i{padding-left: 0.3em;}

.header_content span{padding-right: 0.2em;}

.spancolor{color: red;}

.header_left{height: 40px;float: left;  text-align: center;}

.header_right{ height: 40px;float: right; text-align: center;}

.mytaobao{display: inline-block;width: 90px;height: 40px; position: relative;}

li{list-style: none; width: 90px;height: 30px;line-height: 30px;text-align: left;}

.header_a ul{ border: 1px #F5F5F5 solid;display: none;}

.header_a:hover ul{display: block; position: absolute; color: #6C6C6C;}

.header_a ul li:hover{background: #f5f5f5;}

</style>



<link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">

</head>

<body>


<div>

<div>

<div>

<a>中国大陆<i class="fa fa-angle-down"></i></a>

<a style="color: red;">亲,请登录</a>

<a >免费注册</a>

<a >手机逛淘宝</a>


</div>


<div>

<a >我的淘宝<i class="fa fa-angle-down"></i>

<ul>

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

<li>我的足迹</li>

</ul>

</a>

<a ><span class="fa fa-shopping-cart spancolor"></span>购物车<i class="fa fa-angle-down"></i>

                <ul>

<li>我的购物车</li>

</ul>

</a>

<a ><sapn class="fa fa-star spancolor"></sapn> 收藏夹<i class="fa fa-angle-down"></i></a>

<a >商品分类</a>

<a >卖家中心<i class="fa fa-angle-down"></i>

<ul>

<li>免费开店</li>

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

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

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

<li>卖家服务中心</li>

<li>体检中心</li>

</ul>

</a>

<a >联系客服<i class="fa fa-angle-down"></i>

<ul>

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

<li>卖家客服</li>

</ul>

</a>

<a ><sapn class="fa fa-bars spancolor"></sapn>网站导航<i class="fa fa-angle-down"></i></a>



</div>

</div>

<div></div>

</div>


</body>

</html>


批改老师:灭绝师太批改时间:2018-11-17 09:03:53
老师总结:导航有下拉菜单的话,最好还是不要使用a链接嵌套,用户体验效果不好

发布手记

热门词条