非常大气漂亮的CSS导航栏
这同样是一个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>大气的CSS菜单</title>
<style type="text/css">
.menu5 {padding:5px 0 0 1em; margin:0; list-style:none; height:40px; position:relative; background:transparent url(http://www.zzzyk.com/jscss/demoimg/200906/pro_five_0c.gif) repeat-x left bottom; font-size:11px;}
.menu5 li {float:left; height:40px; margin-right:1px;}
.menu5 li a {display:block; float:left; height:40px; line-height:35px; color:#333; text-decoration:none; font-family:arial, verdana, sans-serif; font-weight:bold; text-align:center; padding:0 0 0 4px; cursor:pointer; background:url(http://www.zzzyk.com/jscss/demoimg/200906/pro_five_0a.gif) no-repeat;}
.menu5 li a b {float:left; display:block; padding:0 16px 5px 12px; background:url(http://www.zzzyk.com/jscss/demoimg/200906/pro_five_0b.gif) no-repeat right top;}
.menu5 li.current a {color:#000; background:url(http://www.zzzyk.com/jscss/demoimg/200906/pro_five_2a.gif) no-repeat;}
.menu5 li.current a b {background:url(http://www.zzzyk.com/jscss/demoimg/200906/pro_five_2b.gif) no-repeat right top;}
.menu5 li a:hover {color:#000; background: url(http://www.zzzyk.com/jscss/demoimg/200906/pro_five_1a.gif) no-repeat;}
.menu5 li a:hover b {background:url(http://www.zzzyk.com/jscss/demoimg/200906/pro_five_1b.gif) no-repeat right top;}
.menu5 li.current a:hover {color:#000; background: url(http://www.zzzyk.com/jscss/demoimg/200906/pro_five_2a.gif) no-repeat; cursor:default;}
.menu5 li.current a:hover b {background:url(http://www.zzzyk.com/jscss/demoimg/200906/pro_five_2b.gif) no-repeat right top;}
</style>
</head>
<body>
<ul class="menu5">
<li><a href="/"><b>站长资源库</b></a></li>
<li><a href="/jscss/"><b>源码下载</b></a></li>
<li><a href="/jscss/"><b>产品服务</b></a></li>
<li class="current"><a href="/jscss/"><b>正在浏览</b></a></li>
<li><a href="/jscss/"><b>网页特效</b></a></li>
<li><a href="/jscss/"><b>Search</b></a></li>
</ul>
</body>
</html>
上一个:三种简洁的Tab网页选项卡
下一个:TAB标签选项卡(CSS+JS)