返回常用导航布局案......登陆

常用导航布局案例

营养快线2019-05-28 16:53:151492

<!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">

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

</head>

<body>

<div>

<div>

<div>

<a href="#">中国大陆&nbsp; <i class=" fa fa-caret-down"></i> </a>

<a href="#" style="color:#f22e00">亲,请登录</a>

<a href="">免费注册</a>

<a href="">手机逛淘宝</a>

</div>



<div>

<a href="">我的淘宝&nbsp; <i class=" fa fa-caret-down"></i></a>

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

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

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

<a href="">联系客服&nbsp; <i class=" fa fa-caret-down"></i></a>

<a href="">网站导航&nbsp; <i class=" fa fa-caret-down"></i></a>

</div>



</div>

<div></div>

</div>

</body>

</html>

---------------------------------------------------

index.css


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

a{text-decoration:none; color: #6c6c6c; font-style: 12px;}

.clear{clear: both;}

.header{width: 100%;height: 36px;background: #f5f5f5;}

.header_content{width: 1190px;height: 35px;margin:0px auto;line-height: 35px;}

.header_content a:hover{color: #f40;}

.header_left{/*background: pink; */width: auto;height: 35px; float: left;}

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

.header_right{/*background: pink; */width: 600px;height: 35px;float: right;}

.header_right a{margin-left: 5px;}

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

.header_a:hover{background: #fff;}


最新手记推荐

• 用composer安装thinkphp框架的步骤• 省市区接口说明• 用thinkphp,后台新增栏目• 管理员添加编辑删除• 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消回复发送