我操作了,不管用,老师帮我看下什么原因

原创 2018-11-08 15:57:39 141
摘要:<!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">

<style type="text/css">

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

a{text-decoration: none;color: #000;font-size: 13px;}

li{list-style: none;}

.clear{clear: both;}

.header{width: 100%;background-color: #f5f5f5;}

.header_contert{width: 1200px;margin: 0px auto;line-height: 40px;}

.header_left{height: 40px;float: left;}

.header_left a{margin-right: 5px;}

.header_contert a:hover{color: #ff5000;}

.header_right{height: 40px;float: right;}

.header_a{display: inline-block;height: 40px;width: 90px;text-align: center;position: relative;}

.header_a:hover{background-color: #fff;}

.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{color: #000;height: 30px;line-height: 30px;text-align: left;padding: 0px 3px;margin: 5px 0px;}

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

</style>

</head>

<body>

<div class="header">

<div class="header_contert">

<div class="header_left">

<a href="" class="header_a">中国大陆&nbsp;&nbsp;<i class="fa fa-angle-down"></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"></i></a>

<ul>

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

<li>我的足迹</li>

</ul>

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

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

<a href="" class="header_a">商品分类</a>

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

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

<a href="" class="header_a">网站导航 <i class="fa fa-angle-down" style="color:#ff5000";></i></a>

</div>

</div>

<div class="clear"></div>

</div>

</body>

</html>

我按照老师操作了,不管用,老师帮我看下什么原因

批改老师:灭绝师太批改时间:2018-11-08 16:00:16
老师总结:下拉菜单出不来吧?这个是布局问题,有二级的话,父级最好也用无序列表布局层级比较清楚,你先添加一下,如果还是不行问题提交到工单

发布手记

热门词条