<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>顛覆傳統觀念---非腳本式下拉菜單[符合W3C標準,全兼容]--來自【心動】</title>
<style>
.xd_menu {
position:relative;
background:#fff;
color:#666;
text-decoration:none;
font-size:12px;
width:200px;
text-align:center;
border:1px solid #ccc;
height:30px;
line-height:25px;
z-index: 10;
display: block;
float: left;
margin-left: 2px;
}/*設置鏈接的屬性,一定要設置爲relative才能使提示層跟着鏈接走*/
.xd_menu:hover {background:#eee;color:#333;}
.xd_menu span{display: none; }/*設置正常下的span爲隱藏狀態*/
.xd_menu:hover span{
display:block;
position:absolute;
top:29px;
left:-1px;
width:130px;
background:#eee;
color:#000;
text-align:left;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-right-color: #CCCCCC;
border-bottom-color: #CCCCCC;
border-left-color: #CCCCCC;
font-size: 12px;
text-decoration: none;
}/*設置hover下的span屬性爲呈現狀態,並設置提示層的位置*/
table a {
color: #0066CC;
color:#0066CC;
text-align: center;
vertical-align: middle;
height: 20;
width: 100%;
text-decoration: none;
text-decoration: none;
font-size: 12px;
display: block;
}
table a:visited {
text-decoration: none;
color: #009900;
width: 100%;
}
table a:hover {
text-decoration: underline;
color: #FFFFFF;
background-color: #0066CC;
text-align: center;
width: 100%;
}
table a:active {
text-decoration: none;
color: #999999;
}
table { width: 100%;}
.xd_menu #table{display: none; }
.xd_menu:hover #table{
display:block;
position:absolute;
top:25px;
left:-1px;
width:130px;
background:#eee;
color:#000;
text-align:left;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-right-color: #CCCCCC;
border-bottom-color: #CCCCCC;
border-left-color: #CCCCCC;
font-size: 12px;
text-decoration: none;
}
</style></head>
<body>
<a class="xd_menu" href="http://www.tcmt.cn">心動菜單一<span>
<table border="0" cellpadding="0" cellspacing="0" >
<tr><td><a href="http://www.tcmt.cn">[url]www.tcmt.cn1[/url]</a></td></tr>
<tr><td><a href="http://www.tcmt.cn">[url]www.tcmt.cn1[/url]</a></td></tr>
<tr><td><a href="http://www.tcmt.cn">[url]www.tcmt.cn1[/url]</a></td></tr></table></span>
</a>
<a class="xd_menu" href="http://www.tcmt.cn">心動菜單二<span>
<table border="0" cellpadding="0" cellspacing="0" >
<tr><td><a href="http://www.tcmt.cn">[url]www.tcmt.cn2[/url]</a></td></tr>
<tr><td><a href="http://www.tcmt.cn">[url]www.tcmt.cn2[/url]</a></td></tr>
<tr><td><a href="http://www.tcmt.cn">[url]www.tcmt.cn2[/url]</a></td></tr></table></span>
</a>
<a class="xd_menu" href="http://www.tcmt.cn">心動菜單三<span>
<table border="0" cellpadding="0" cellspacing="0" >
<tr><td><a href="http://www.tcmt.cn">[url]www.tcmt.cn3[/url]</a></td></tr>
<tr><td><a href="http://www.tcmt.cn">[url]www.tcmt.cn3[/url]</a></td></tr>
<tr><td><a href="http://www.tcmt.cn">[url]www.tcmt.cn3[/url]</a></td></tr></table></span>
</a>
</body>
</html>