0
我有这个菜单栏:http://jsfiddle.net/PtQAP/ 我需要把它放在最下面,下拉菜单变成下拉菜单。 我该怎么做?如何更改下拉菜单到下拉菜单
CSS:
ul, li, a {
margin: 0;
padding: 0;
}
li {
list-style: none;
}
a {
text-decoration: none;
color: #000000;
}
ul > li {
float: left;
}
ul > li a {
color: #fff;
font-weight: bold;
line-height: 40px;
height:40px;
display:block;
padding:0px 10px;
}
ul li a:hover {
background: #666666;
}
ul li ul {
display: none;
position: absolute;
background: #333333;
}
ul li ul li {
float: none;
line-height: 40px;
height: 40px;
}
感谢您的答案。
可能[用PURE CSS向上/向上打开的下拉菜单]的副本(http://stackoverflow.com/questions/7814186/drop-down-menu-that-opens-up-upward-with-pure-css) – chris97ong