纯CSS3动感导航条

2015-12-14 0 518
纯CSS3动感导航条
<!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>纯CSS3打造动感导航条</title>
<style>
body{
	background:#EDEDED;
}

.nav{
	width:606px;
	margin:100px auto 0 auto;
}

li{
	width:100px;
	height:30px;
	list-style:none;
	float:left;
	margin-left:-1px;

	/*菜单文字排版*/
	line-height:26px;
	text-align:center;
	letter-spacing:3px;

	/*设置菜单边框*/
	border:1px solid #B2B2B2;
	border-radius:3px;

	/*设置菜单阴影*/
	-webkit-box-shadow:0 1px 2px #CDCDCD;
	box-shadow:0 1px 2px #CDCDCD;

	/*设置菜单动画*/
	-webkit-transition:all 0.3s ease;
	-moz-transition:all 0.3s ease;
	transition:all 0.3s ease;
}

a{
	width:96px;
	height:28px;
	display:inline-block;

	/*设置链接样式*/
	color:#999;
	font-size:10px;
	font-family:Verdana,sans-serif;
	text-decoration:none;

	/*webkit文字大小*/
	-webkit-text-size-adjust:none;
	
	/*设置边框*/
	border:2px solid #FFF;
	border-bottom:none;
	border-radius:3px;

	/*菜单背景渐变*/
	background:-webkit-linear-gradient( top,#FFFFFF 20%,#F3F3F3 85%,#E5E5E5 100%);
	background:-moz-linear-gradient( top,#FFFFFF 20%,#F3F3F3 85%,#E5E5E5 100%);
	background:linear-gradient( top,#FFFFFF 20%,#F3F3F3 85%,#E5E5E5 100%);
}

li:hover{
	margin-top:-8px;
}

a:hover{ 
	color:#777;
}
</style>
</head>

<body>
<div class="nav">
	<li><a href="#" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow" >HOME</a></li>
	<li><a href="#" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow" >LIFE</a></li>
	<li><a href="#" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow" >WEB</a></li>
	<li><a href="#" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow" >PHP</a></li>
	<li><a href="#" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow" >PIC</a></li>
	<li><a href="#" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow" >ABOUT</a></li>
</div>
</body>
</html>

遇见资源网 css 纯CSS3动感导航条 http://www.ox520.com/14592.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务