纯CSS下拉菜单,简单实用
<!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=gb2312" />
<title>无标题文档</title>
<style type="text/css">
ul{font-size:14px;
margin-top:10px;}
li{list-style-type:none;
float:left;
margin:0px 0px 0px -5px;
text-align:center;
}
a.menu:link,a.menu:visited{display:block;
width:100px;
background:#800000;
color:#CCCCCC;
padding:5px 0px;
text-decoration:none;
}
a.menu:hover{background:#460000;
color:#FFFFFF;
text-decoration:underline;
}
dl{margin:0px;
padding:0px;
}
dd{margin:1px 0px 0px 0px;
display:none;
border:1px solid #000000;
}
a.submenu:link,a.submenu:visited{text-decoration:none;
background:#800000;
color:#CCCCCC;
display:block;
padding:5px 0px;
width:98px;
}
dd a.submenu:hover{background:#460000;
color:#FFFFFF;
text-decoration:underline;
}
a.box:hover dl dd{display:block;}
</style>
</head>
<body>
<ul>
<li>
<a class="box" href="#"><table><tr><td>
<dl>
<dt><a class="menu" href="#">首页</a></dt>
<dd><a class="submenu" href="#">关于我们</a></dd>
<dd><a class="submenu" href="#">主营业务</a></dd>
<dd><a class="submenu" href="#">人才招聘</a></dd>
<dd><a class="submenu" href="#">合作伙伴</a></dd>
</dl>
</td></tr></table></a>
</li>
<li>
<a class="box" href="#"><table><tr><td>
<dl>
<dt><a class="menu" href="#">关于我们</a></dt>
<dd><a class="submenu" href="#">关于我们一</a></dd>
<dd><a class="submenu" href="#">关于我们二</a></dd>
<dd><a class="submenu" href="#">关于我们三</a></dd>
<dd><a class="submenu" href="#">关于我们四</a></dd>
</dl>
</td></tr></table></a>
</li>
<li>
<a class="box" href="#"><table><tr><td>
<dl>
<dt><a class="menu" href="#">主营业务</a></dt>
<dd><a class="submenu" href="#">主营业务一</a></dd>
<dd><a class="submenu" href="#">主营业务二</a></dd>
<dd><a class="submenu" href="#">主营业务三</a></dd>
<dd><a class="submenu" href="#">主营业务四</a></dd>
</dl>
</td></tr></table></a>
</li>
<li>
<a class="box" href="#"><table><tr><td>
<dl>
<dt><a class="menu" href="#">人才招聘</a></dt>
<dd><a class="submenu" href="#">人才招聘一</a></dd>
<dd><a class="submenu" href="#">人才招聘二</a></dd>
<dd><a class="submenu" href="#">人才招聘三</a></dd>
<dd><a class="submenu" href="#">人才招聘四</a></dd>
</dl>
</td></tr></table></a>
</li>
<li>
<a class="box" href="#"><table><tr><td>
<dl>
<dt><a class="menu" href="#">合作伙伴</a></dt>
<dd><a class="submenu" href="#">合作伙伴一</a></dd>
<dd><a class="submenu" href="#">合作伙伴二</a></dd>
<dd><a class="submenu" href="#">合作伙伴三</a></dd>
<dd><a class="submenu" href="#">合作伙伴四</a></dd>
</dl>
</td></tr></table></a>
</li>
</ul>
</body>
</html>
[ 本帖最后由 xiangbide 于 2011-8-13 13:15 编辑 ]