类似Vista样式的纯CSS导航条
非常漂亮的一个类似仿Vista风格的CSS菜单,这是纯CSS代码实现的哦,而且效果超不错,不过用了很多图片,请顺着图片地址下载下来,一次付出,以后就可以随便用了,感觉很酷的菜单。
答案:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>类似Vista样式的纯CSS导航条</title>
<style type="text/css">
.pro15 {padding:0 0 0 20px; margin:0; list-style:none; height:30px; background:#1841c8 url(/jscss/demoimg/200906/pro_15_0.gif);}
.pro15 li {float:left;}
.pro15 li a {display:block; float:left; height:30px; line-height:30px; background:url(/jscss/demoimg/200906/pro_15_0.gif); color:#ddd; text-decoration:none; font-family:arial, verdana, sans-serif; text-align:center; padding:0 0 0 10px; cursor:pointer; font-size:11px;}
.pro15 li a b {float:left; display:block; background:url(/jscss/demoimg/200906/pro_15_0.gif) right top; padding:0 16px 0 8px;}
.pro15 li.current a {color:#fff; background:url(/jscss/demoimg/200906/pro_15_2.gif);}
.pro15 li.current a b {background:url(/jscss/demoimg/200906/pro_15_2.gif) no-repeat right top;}
.pro15 li a:hover {color:#fff; background: url(/jscss/demoimg/200906/pro_15_1.gif);}
.pro15 li a:hover b {background:url(/jscss/demoimg/200906/pro_15_1.gif) no-repeat right top;}
.pro15 li.current a:hover {color:#fff; background: url(/jscss/demoimg/200906/pro_15_2.gif); cursor:default;}
.pro15 li.current a:hover b {background:url(/jscss/demoimg/200906/pro_15_2.gif) no-repeat right top;}
.pro15 li a em {display:block; float:left; width:16px; height:30px;}
.pro15 li a em.home {background:url(/jscss/demoimg/200906/home2.gif) no-repeat center center;}
.pro15 li a em.calendar {background:url(/jscss/demoimg/200906/events.gif) no-repeat center center;}
.pro15 li a em.camera {background:url(/jscss/demoimg/200906/camera.gif) no-repeat center center;}
.pro15 li a em.find {background:url(/jscss/demoimg/200906/find.gif) no-repeat center center;}
.pro15 li a em.contact {background:url(/jscss/demoimg/200906/contact.gif) no-repeat center center;}
.pro15 li a em.search {background:url(/jscss/demoimg/200906/search.gif) no-repeat center center;}
</style>
</head>
<body>
<ul class="pro15">
<li><a href="/"><em class="home"></em><b>首页</b></a></li>
<li><a href="/sort/index.shtml"><em class="calendar"></em><b>分类</b></a></li>
<li><a href="#"><em class="camera"></em><b>相册</b></a></li>
<li><a href="/"><em class="find"></em><b>网页特效</b></a></li>
<li class="current"><a href="/service/ad.shtml"><em class="contact"></em><b>广告业务</b></a></li>
<li><a href="#"><em class="search"></em><b>Search</b></a></li>
</ul>
</body>
</html>
上一个:一个可以伸展打开的滑动导航栏
下一个:利用cookie记忆当前位置的防刷新导航