Bootstrap multi-level menu implementation code and bootstrap code

Source: Internet
Author: User

Bootstrap multi-level menu implementation code and bootstrap code

Recently I encountered a problem when I was using Bootstrap for a project. I only gave the second-level menu on the official website, but the actual use must be more than second-level menus. So on the Internet to see a third-party tool: bootstrap-submenu, address: https://github.com/vsn4ik/bootstrap-submenu
You can download the source code.

Add the bootstrap-submenu.jsand bootstrap-submenu.css files to the project.

Add:

<A href = "#" rel = "external nofollow" class = "data-toggle" data-toggle = "dropdown" data-submenu>

This is mainly the final submenu.

And then in JS:

$ (Function () {$ ('[data-submenu]'). submenupicker ();});

In this way, you can

The above is the implementation code of the Bootstrap multi-level menu introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave a message and the editor will reply to you in time. Thank you very much for your support for the help House website!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.