复杂的菜单样式
<title>带字体</title>
<style type="text/css">
body{
background-color:#999;
}
#menu{
font-size:16px;
width:140px;
margin:0 auto;
border:solid 1px #ccc;
}
#menu a,#menu a:visited{
text-decoration:none;
text-align:center;
color:#c00;
display:block;
padding:4px;
background-color:#fff;
border:solid 1px #fff;
height:1em;
position:relative;
}
#menu a:hover{
border-color:#c00;
}
#menu a:hover span{
display:block;
height:0px;
width:0px;
border:solid 8px #fff;
top:4px;
position:absolute;
}
#menu a:hover span.left{
border-left-color:red;
left:8px;
}
#menu a:hover span.right{
border-right-color:red;
right:8px;
}
#menu a:hover span.info{
display:block;
right:-150px;
width:120px;
height:auto;
}
#menu a span.info,#menu a:visited span.info{
display:none;}
</style>
</head>
<body>
<div id="menu">
<a href="#"><span class="left"></span>Home<span class="right"></span><span class="info">
这是Home</span></a>
<a href="#"><span class="left"></span>Contact Us<span class="right"></span><span class="info">
这是Contact Us</span></a>
<a href="#"><span class="left"></span>Web Dev<span class="right"></span><span class="info">
这是Web Dev</span></a>
<a href="#"><span class="left"></span>Web Design<span class="right"></span><span class="info">
这是Web Design</span></a>
<a href="#"><span class="left"></span>Map<span class="right"></span><span class="info">
这是Map</span></a>
</div>
</body>