<ul >素金</a></li>
</ul></li>
</ul>
menu.css
*{margin:0;padding:0;border:0;}
body {
font-family: arial, 宋体, serif;
font-size:12px;
}
#nav {
list-style-type: none;
margin-top:40px;
margin-left:5px;
width:152px;
}
#nav li {
float: none;
margin-bottom:12px;
padding-left:0px;
}
#nav li ul {
list-style-type: none;
width:78px;
text-align:left;
margin:0px;
left: -999em;
position: absolute;
padding:0px;
}
#nav li ul li{
width: 78px;
height:19px;
line-height:19px;
margin:0px;
padding:0px;
background:url(images/di.jpg) repeat-y;
}
#nav a
{
font-size:12px;
}
#nav li ul a{
display: block;
width: 75px;
text-align:left;
padding-left:16px;
}
#nav li ul a:link {
color:#727375;
text-decoration:none;
}
#nav li ul a:visited {
color:#727375;
text-decoration:none;
}
#nav li ul a:hover {
color:#727375;
text-decoration:none;
font-weight:normal;
}
#nav li:hover ul {
left: auto;
}
#nav li.sfhover ul {
left: auto;
}
#content {
clear: left;
}
<script type=text/javascript><!--//--><![CDATA[//><!--
function menuFix() {
var sfEls = document.getElementById("nav").getElementsByTagName("li");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=(this.className.length>0? " ": "") + "sfhover";
}
sfEls[i].onMouseDown=function() {
this.className+=(this.className.length>0? " ": "") + "sfhover";
}
sfEls[i].onMouseUp=function() {
this.className+=(this.className.length>0? " ": "") + "sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp("( ?|^)sfhover"),"");
}
}
}
window.onload=menuFix;
//--><!]]>
</script>