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

原创2018-12-08 15:52:4740
摘要:html编码页<!DOCTYPE html><html><head><meta charset="UTF-8"><title>案例1</title><link rel="stylesheet" href="css/daohang1.css"><lin

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


批改老师:Peter-Zhu批改时间:2018-12-08 17:31:10
老师总结:布局一定要先从大处着眼,再慢慢打磨细节,一定不要着急

发布手记

热门词条