竖向蓝色圆角经典的CSS菜单代码

代码简介:竖向圆角滑过变色的CSS菜单栏,同样来自老外网站哦,在IE6下好像有点问题,自己修正下。

代码内容:

<!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>
<title>竖向蓝色圆角经典的CSS菜单代码_网页代码站(www.webdm.cn)</title>
<style>
img{border:0px;}
.flt{float:left;}
.menubg{clear:left; background-color:#6FA9C7; width:202px;}
.menu{float:left; clear:left; font:bold 11px Helvetica, Arial, sans-serif;}
.menu li {
margin:0px 0px 0px 0px;
	list-style:none;
	}
.menu a, .menu a:visited {
	width:186px;
	height:22px;
	margin:0px 0px 2px -32px;
	position:relative;
	display:block;
	color:#cbe7f5;
	text-decoration:none;
	background:url(http://www.webdm.cn/images/20090918/menubg4.jpg) no-repeat;
	padding:4px 0 0 8px;
	}
*html .menu a, .menu a:visited {
	width:186px;
	height:22px;
	margin:0px 0px 2px -32px;
	position:relative;
	display:block;
	color:#cbe7f5;
	text-decoration:none;
	background:url(http://www.webdm.cn/images/20090918/menubg4.jpg) no-repeat;
	padding:4px 0 0 8px;
	}
.menu a:hover, .menu a:active,
.menu li.current_page_item a, .menu li.current_page_item a:visited  {
	background:url(http://www.webdm.cn/images/20090918/menubg3.jpg) no-repeat;
	text-decoration:none;
	}	
.bot{clear:left;}
</style>
</head>
<body>
<img src="http://www.webdm.cn/images/20090918/top.jpg" width="202" height="4" alt="" class="top flt" />
<div class="menubg flt">
	<ul class="menu flt">
		<li class="current_page_item"><a href="/">Home</a></li>
		<li class=""><a href="/" title="About">About Us</a></li>
		<li class=""><a href="http://www.webdm.cn" title="Work">Work</a></li>
		<li class=""><a href="/" title="Contact">Contact</a></li>
		<li class=""><a href="/" title="Location">Location</a></li>
		<li class=""><a href="http://www.webdm.cn" title="Welcome to webdm.cn">WebDm.cn</a></li>
	</ul>	
</div>
<img src="http://www.webdm.cn/images/20090918/bot.jpg" width="202" height="3" alt="" class="bot flt" />
</body>
</html>
<br>
<p><a href="http://www.webdm.cn">网页代码站</a> - 最专业的代码下载网站 - 致力为中国站长提供有质量的代码!</p>

代码来自:http://www.webdm.cn/webcode/4c8373d4-b4d6-4715-9cfb-36b96de1d7de.html

posted @ 2011-03-01 09:07  网页代码站  阅读(290)  评论(0编辑  收藏  举报