Implement default navigation bar by Bootstrap _ javascript tips-js tutorial

Source: Internet
Author: User
Tags bootstrap website
This article mainly introduces how Bootstrap implements the default navigation bar. The navigation bar is a good feature and a prominent feature of the Bootstrap website. This article will guide you through how to implement the Bootstrap navigation bar, if you need it, you can refer to the navigation bar. It is a good feature and a prominent feature of the Bootstrap website. The navigation bar is a responsive meta component that serves as the navigation title of an application or website. The navigation bar is collapsed in the mobile device view. The navigation bar expands horizontally as the width of the available view increases. At the core of the Bootstrap navigation bar, the navigation bar includes defining the style for the site name and basic navigation.
To create a default navigation bar, follow these steps:

  • Direction Add class. navbar,. navbar-default (white-black), navbar-inverse (Black-White)
  • Adding role = "navigation" to the above element helps increase accessibility.
  • Direction

    Element to add a title class. navbar-header, which contains an element with class navbar-brand. This will make the text look bigger.

To add a link to the navigation bar, simply add an unordered list with class. nav and. navbar-nav.

The following example demonstrates this:

    Bootstrap instance-default navigation bar  
   
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.