立体菜单
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
#menu{
font-family:Arial, Helvetica, sans-serif;
font-size:14px;
}
#menu a,#menu a:visited{
text-decoration:none;
text-align:center;
color:#fff;
display:block;
width:10em;
padding:0.25em;
margin:0.5em auto;
background-color:#8ab;
border:2px solid #fff;
position:relative;
border-color:#def #678 #345 #cde;
}
#menu a:hover{
top:2px;
left:2px;
border-color:#345 #cde #def #678;
}
</style>
</head>
<body>
<div id="menu">
<a href="#">Home</a>
<a href="#">Contact</a>
<a href="#">Web Dev</a>
<a href="#">Web Design</a>
<a href="#">Map</a>
</div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
#menu{
font-family:Arial, Helvetica, sans-serif;
font-size:14px;
}
#menu a,#menu a:visited{
text-decoration:none;
text-align:center;
color:#fff;
display:block;
width:10em;
padding:0.25em;
margin:0.5em auto;
background-color:#8ab;
border:2px solid #fff;
position:relative;
border-color:#def #678 #345 #cde;
}
#menu a:hover{
top:2px;
left:2px;
border-color:#345 #cde #def #678;
}
</style>
</head>
<body>
<div id="menu">
<a href="#">Home</a>
<a href="#">Contact</a>
<a href="#">Web Dev</a>
<a href="#">Web Design</a>
<a href="#">Map</a>
</div>
</body>
</html>