Multilevel scrollable menu

北慕城南 提交于 2019-12-11 16:46:26

问题


I want to make a multilevel scrollable menu. How can I do it? Here is the FIDDLE I make for testing:

.nav ul {
position: absolute;
margin: 0;
padding: 0;
list-style: none;
display: block;
overflow: scroll;
max-height: 100px;
}

I have tried out to set the max-height, and add the overflow: scroll. But it doesnt display what I want. I want it to be eg: level 2 scrollable, meanwhile level 3, level 4 still stay side by side when i mouse over it. Thank you guys!


回答1:


Is this better ?

http://jsfiddle.net/jq1zrkwo/4/

just removed this :

max-height:100px;
overflow:scroll;


来源:https://stackoverflow.com/questions/28804878/multilevel-scrollable-menu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!