仿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>
<title>仿Vista金属感导航菜单代码_网页代码站(www.webdm.cn)</title>
<style type="text/css">
.menu3 {padding:0 0 0 32px; margin:0; list-style:none; height:35px; background:#fff url(http://www.webdm.cn/images/20090917/three_0.gif); 

position:relative; border:1px solid #000; border-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(http://www.webdm.cn/images/20090917/three_2.gif);}
.menu3 li.current a b {background:url(http://www.webdm.cn/images/20090917/three_2.gif) no-repeat right top;}
.menu3 li a:hover {color:#fff; background:#000 url(http://www.webdm.cn/images/20090917/three_1.gif);}
.menu3 li a:hover b {background:url(http://www.webdm.cn/images/20090917/three_1.gif) no-repeat right top;}
.menu3 li.current a:hover {color:#fff; background:#000 url(http://www.webdm.cn/images/20090917/three_2.gif); cursor:default;}
.menu3 li.current a:hover b {background:url(http://www.webdm.cn/images/20090917/three_2.gif) no-repeat right top;}
</style>
</head>
<body>
<ul class="menu3">
<li><a href="/"><b>Home</b></a></li>
<li><a href="http://www.webdm.cn"><b>Privacy Policy</b></a></li>
<li><a href="/"><b>Products</b></a></li>
<li class="current"><a href="http://www.webdm.cn"><b>Where to find us</b></a></li>
<li><a href="/"><b>Contact us</b></a></li>
<li><a href="/"><b>Search</b></a></li>
</ul>
</body>
</html>
<br>
<a href="http://www.webdm.cn">网页代码站</a> - 最专业的代码下载网站 - 致力为中国站长提供有质量的代码!

代码来自:http://www.webdm.cn/webcode/5d921238-4d58-4d62-9953-23e51da794cb.html

原文地址:https://www.cnblogs.com/webdm/p/1963468.html