手记 / 模仿京东导航写的样式,请老师查看

模仿京东导航写的样式,请老师查看

3天前6浏览0评论

html编码页

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>案例1</title>

<link rel="stylesheet" href="css/daohang1.css">

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

</head>

<body>

<div>

<div>

<div>

<a href=""><span class="fa fa-map-marker"></span>&nbsp;地点定位</a>

</div>

<div>

<a href="">您好,请登录</a>

<a href="" style="color: #F10215">免费注册</a>

<a href="">我的订单</a>

<a href="">我的京东&nbsp;<i class="fa fa-angle-down"></i></a>

<a href="">京东会员</a>

<a href="">企业采购&nbsp;<i class="fa fa-angle-down"></i></a>

<a href="">客户服务&nbsp;<i class="fa fa-angle-down"></i></a>

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

<a href="">手机京东</a>

</div>

</div>

</div>

<div></div>

</body>

</html>

css样式页面 

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

a {text-decoration: none;}

.clear {clear:both;}

.header {width: 100%;height: 40px;background-color: #E3E4E5;}

.header a {color: #999999;font-size: 12px;}

.header a:hover{color: #F10215;}

.header_content {width: 1200px;height: 40px;margin: 0px auto;line-height: 40px;text-align: center;}

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

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

.header_right a{display: inline-block;width: 75px;height: 40px;}

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


相关标签:HTMLCSS
    0推荐

      李准

      PHP开发工程师

      作者的热门手记

      PHP中文网

      未登录