该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
JavaScript下拉菜单#nav li
{
float:left;
width:140px;
height:40px;
background-color:#f0f0f0;
border:red 1px solid;
list-style-type:none;
text-align:center;
position:relative;
}
#nav li ul
{
display:none;
margin:0px;
}
#nav li a:link , #nav li a:visited
{
line-height:40px;
display:block;
width:130px;
height:40px;
text-decoration:none;
background:#c5dbf2;
padding-left:10px;
}
#nav a
{
border:1px black solid;
}
#nav li ul
{
display:none;
position:absolute;
top:40px;
left:0px;
margin-top:1px;
}
#nav li ul li ul {
display:none;
position:absolute;
top:0px;
left:100px;
margin-top:0;
margin-left:1px;
width:120px;
}
#nav
{
margin:20px;
}
function displaySubMenu(li)
{
var SubMenu=li.getElementsByTagName("ul")[0];
SubMenu.style.display="block";
}
function hideSubMenu(li)
{
var SubMenu=li.getElementsByTagName("ul")[0];
SubMenu.style.display="none";
}