金属感不错的仿Vista导航栏
又一个仿Vista菜单栏,很有金属质感的味道,很华丽的效果,菜单看上去又像是一个个排列整齐的按钮,鼠标滑过变色,符合W3c标准,兼容IE7、IE8、FF以及GG浏览器,菜单要用到几张图片,顺着代码地址可以下载。
答案:<!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>导航条</title>
<style type="text/css">
.menu3 {padding:0 0 0 32px; margin:0; list-style:none; height:35px; background:#fff url(/jscss/demoimg/200905/three_0.gif); position:relative; border:1px solid #000; border-width:0 1px; border-bottom:1px solid #444;}
.menu3 li {float:left;}
.menu3 li a {display:block; float:left; height:35px; line-height:35px; color:#aaa; text-decoration:none; font-size:11px; font-family:arial, verdana, sans-serif; font-weight:bold; text-align:center; padding:0 0 0 8px; cursor:pointer;}
.menu3 li a b {float:left; display:block; padding:0 16px 0 8px;}
.menu3 li.current a {color:#fff; background:url(/jscss/demoimg/200905/three_2.gif);}
.menu3 li.current a b {background:url(/jscss/demoimg/200905/three_2.gif) no-repeat right top;}
.menu3 li a:hover {color:#fff; background:#000 url(/jscss/demoimg/200905/three_1.gif);}
.menu3 li a:hover b {background:url(/jscss/demoimg/200905/three_1.gif) no-repeat right top;}
.menu3 li.current a:hover {color:#fff; background:#000 url(/jscss/demoimg/200905/three_2.gif); cursor:default;}
.menu3 li.current a:hover b {background:url(/jscss/demoimg/200905/three_2.gif) no-repeat right top;}
</style>
</head>
<body>
<ul class="menu3">
<li><a href="/jscss/"><b>Main</b></a></li>
<li><a href="/"><b>Privacy Policy</b></a></li>
<li><a href="/"><b>Products</b></a></li>
<li class="current"><a href="/jscss/"><b>Welcome</b></a></li>
<li><a href="/jscss/"><b>Contact us</b></a></li>
<li><a href="/jscss/"><b>Search</b></a></li>
</ul>
</body>
</html>
上一个:纯CSS仿Vista风格按钮菜单条
下一个:超级漂亮的CSS多级透明展开菜单