dsfjk44656 2016-07-25 21:24
浏览 43
已采纳

多级菜单

I have a project and I need a multi level menu which will be dynamic, but for now I want it hardcoded (html / jquery / javascript / anything that will work).

The first level will be some icons which will be place horizontally. And when I click on any icon the second level will appear, which will have a sub menu (child elements) and the third level will have some children elements too.

The structure will be like this:

Icon1
 FirstMenu
   SecondMenu
     ThirdMenu
 FirstMenu
   SecondMenu
Icon2
 FirstMenu
   SecondMenu
     ThirdMenu
 FirstMenu
   SecondMenu
Icon3
 FirstMenu.

I was able to create a sublevel menu, but I can't figure it out how to put those icons in it, and on click to show me the children of it.

The menu should be like this. When I click on a icon, the right menu from the bottom should collapse. And when I click on HEAVY DUTY for example, a third level should appear.

Can you give me some hints or resources from where I can start ?

Thank you very much in advance!

  • 写回答

1条回答 默认 最新

  • dongxi1320 2016-07-25 21:35
    关注

    Try this. you can add fontawesome for the icons. Js Fiddle p9Lea8g4/7/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改
  • ¥20 wireshark抓不到vlan