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/

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

报告相同问题?

悬赏问题

  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示