我搜索了很多帖子和论坛,因为我认为这可能是一个基本的东西,但没有找到它,所以问这里,我所要做的是添加滚动条,如果高度超过一定限度可以说,如果菜单项超过3添加滚动条到动态ul li
如果你不能够访问它,然后这里是HTML和CSS HTML
HomeSQL Server vs OracleBasic SQL : Declare variables and assign valuesBasic SQL : Inner Join, Outer Join and Cross JoinBasic SQL : Padding and TrimmingBasic SQL : Union,Except/Minus,IntersectUpdate from SelectSSISCoalesce in SSISUniversal CSV GeneratorParsing a row into multiple in CSVXML Task in SSIS
CSS
#mnav {
margin-left: -30px;
margin-right: -30px;
}
#mnav li {
float: left;
list-style: none;
}
#mnav li a, #mnav li a:link, #mnav li a:visited {
text-decoration: none;
}
#mnav li a:hover, #mnav li a:active {
text-decoration: none;
}
#mnav li:hover, #mnav li.sfhover {
position: static;
}
#mnav li ul {
display: block;
z-index: 9999;
position: absolute;
left: -999em;
width: 400px;
margin: 0px;
border: 1px solid #ddd;
}
#mnav li:hover ul, #mnav li.sfhover ul {
left: auto;
}
#mnav li ul li a, #mnav li ul li a:link, #mnav li ul li a:visited {
display: block;
margin: 0;
text-decoration: none;
z-index: 9999;
border-bottom: 1px dotted #ccc;
width: 500px;
}
#mnav li ul li a:hover, #mnav li ul li a:active {
display: block;
margin: 0;
text-decoration: none;
}
-12-23
sam