面包屑导航之一



用到的背景图片:

crumb_1.png

crumb_2.png


crumb_over.png

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
*{padding: 0;margin: 0;}
.wrapper{
	margin:100px auto;
	width: 900px;
	background-color: #EDEDED;
	overflow: hidden;
}
ul{list-style-type:none;}
li{float:left;}
a{ 
	position: relative;
	background-position:right center;
	padding: 4px 15px 4px 5px;
	text-decoration: none;
	display:block;
	color:white;
}
#crumb1 a{background-image:url(images/crumb_1.png)}
#crumb2 a{background-image:url(images/crumb_2.png)}
#crumb3 a{background-image:url(images/crumb_3.png)}
#crumb1 a:hover,
#crumb2 a:hover,
#crumb3 a:hover{background-image:url(images/crumb_over.png)}
#crumb1 a{ z-index:3;}
#crumb2 a{ z-index:2;}
#crumb3 a{ z-index:1;}
#crumb2 a,#crumb3 a{margin-left:-20px;padding-left: 25px;}

</style>
</head>
<body>
<div class="wrapper">
<ul class="crumb-nav">
	<li id="crumb1">
        	<a href="#">首页</a>
    </li>
    <li id="crumb2">
        	<a href="#">国内新闻</a>
    </li>
    <li id="crumb3">
        	<a href="#">时政要闻</a>
    </li>
</ul>
</div>
</body>
</html>


本文所用文件及样式采自:http://www.guardian.co.uk/uk/the-northerner/gallery/2013/jan/03/northern-eye-christopher-thomond?picture=401820496


另参考两款jquery插件:1.jquery-breadCrumb      2.jBreadCrumb

另可参参考:http://www.lendmeyourear.net/breadcrumb-navigation-with-css-arrows.html


  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值