非脚本式下拉菜单[

<head>
<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> 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值