Bootstrap navigation, bootstrap

Source: Internet
Author: User

Bootstrap navigation, bootstrap
Navigation
The navigation components in Bootstrap depend on the same. nav class, And the status class is also shared. You can change the style of a modifier.
Tab
Note: The nav-tabs class dependency. nav base class

The Code is as follows:

<! DOCTYPE html> 



Capsule Tab
The HTML Tag is the same, but the. nav-pills class is used:
The Code is as follows:

<! DOCTYPE html> 



Capsules can be stacked vertically on tabs. You only need to add the. nav-stacked class.
The Code is as follows:

<! DOCTYPE html> 



Tabs aligned at both ends
On a screen larger than 768px, The. nav-justified class can easily make tabs or capsule labels show the same width. On a small screen, navigation links are stacked.
The navigation bar navigation link aligned at both ends has been discarded.
The Code is as follows:

<! DOCTYPE html> 


Disabled Link
You can add the. disabled class to any navigation component (the tab and capsule are tabs), so that the link is gray and there is no mouse hover effect.
The Code is as follows:

<! DOCTYPE html> 


Add drop-down menu
Use a little extra HTML code and add the JavaScript plug-in of the drop-down menu plug-in.
Tab with drop-down menu
The Code is as follows:

<! DOCTYPE html> 



Capsule tab with drop-down menu
The Code is as follows:

<! DOCTYPE html> 



Note: This article is from java tutorial network. For more information, see java tutorial network.

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.