Bootstrap CSS Component Navigation (NAV) _javascript tips

Source: Internet
Author: User

This example for you to share the bootstrap navigation of the specific code for your reference, the specific contents are as follows

Source code
. Nav {
 padding-left:0;
 margin-bottom:0;
 List-style:none
}
. Nav > li {
 position:relative;
 Display:block
}
. Nav > li > a {
 position:relative;
 Display:block;
 padding:10px 15px;
Nav > li > A:hover,
. Nav > li > A:focus {
 text-decoration:none;
 Background-color: #eee;
Nav > Li.disabled > a {
 color: #777;
}
. Nav > li.disabled > A:hover,
. Nav > li.disabled > A:focus {
 color: #777;
 Text-decoration:none;
 cursor:not-allowed;
 background-color:transparent;
}

Unlike the default. BTN style, the default. NAV style does not provide default navigation and must be done by attaching another style, such as. nav-tabs Style represents tab navigation.
nav nav-tabs nav-pills nav-stacked nav-justified navbar

1. tab navigation (NAV nav-tabs)
2. Capsule-Type tab navigation (Nav nav-pills)
3. Stacked Navigation (nav nav-pills nav-stacked)
4. Adaptive navigation (NAV nav-tabs/nav-pills nav-justified)
5. Level two navigation (Nav nav-tabs dropdown dropdown-menu)

examples see navigation. html

<! DOCTYPE html>  

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

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.