常用导航条布局-浮动、小图标添加、div命名规则减少代码量

原创2019-07-19 16:48:1017
摘要:<!DOCTYPE html><html><head><meta charset="UTF-8"><title>常用导航布局案例</title><!-- <link rel="stylesheet" type="text/css" href="c

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>常用导航布局案例</title>

<!-- <link rel="stylesheet" type="text/css" href="css/style.css"> -->

<style>

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

.clear{clear:both;}

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

.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;}

.header_right_b{color:#DFDFE4;margin:5px;}

</style>


<link rel="stylesheet" type="text/css" 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" style="color:#FF5000;"></span>&nbsp;&nbsp;购物车<i class="fa fa-angle-down"></i></a>

<a href="" ><span class="fa fa-star" style="color:#9C9C9C"></span>&nbsp;&nbsp;收藏夹<i class="fa fa-angle-down"></i></a>

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

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

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

<a href="" ><span class="fa fa-tasks" style="color:#FF5000;"></span>&nbsp;&nbsp;网站导航<i class="fa fa-angle-down"></i></a>

</div>

</div>

<div></div>

</div>

</body>

</html>



批改老师:欧阳克批改时间:2019-07-20 13:04:41
老师总结:完成的不错。学编程,先从模仿开始,继续加油。

发布手记

热门词条

第九期线上培训班