Bootstrap implementation of response navigation bar effect _javascript skills

Source: Internet
Author: User
Tags button type

To add a response feature to the navigation bar, the content you want to fold must be wrapped in <div> with classes. Collapse,. Navbar-collapse. The folded navigation bar is actually a button with class. Navbar-toggle and two data-elements. The first is Data-toggle, which tells JavaScript what to do with the button, and the second is Data-target, which indicates which element to switch to. Three <span> with class. Icon-bar to create the so-called Hamburg button. These will switch to the elements in the. Nav-collapse <div>. In order to achieve these features, you must include a Bootstrap folding (Collapse) plug-in.
Effect Chart:

The following example demonstrates this:

<! DOCTYPE html>  

If you want to further study, you can click here to learn, and then attach two wonderful topics: Bootstrap Learning Tutorials Bootstrap Practical course

The above is the entire content of this article, I hope to help you learn.

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.