Response navigation bar and Bootstrap navigation bar of the bootstrap component

Source: Internet
Author: User

Response navigation bar and Bootstrap navigation bar of the bootstrap component

Responsive navigation bar: by default, all content is displayed on PCs and tablets. By default, only "LOGO/Brand" and a "Hide menu button" are displayed on the navigation bar of your phone ", all menu items are displayed only after you click the collapse button.

Basic class:. navbar

1. Position of the navigation bar in Bootstrap:

1) top navigation bar

2) Bottom navigation bar

Color of the navigation bar in Bootstrap:

1) light-colored font. navbar-default

2) dark-colored font. navbar-inverse

Position the navigation bar in Bootstrap by position:

1) relative position: Default Value of relative

2) fixed position: fixed. navbar-fixed-top/bottom

2. navigation bar structure:

<Div class = "navbar color positioning">

<Div class = "container">

<! -- Navigation bar head: Trademark + button -->

<Div class = "navbar-header">

<A class = "navbar-brand">

<Button class = "navbar-toggle">

</Div>

<! -- Navigation bar folding menu: menu, button, search box, Link, text... -->

<Div class = "navbar-collapse">

<Ul class = "nav navbar-nav">

<Form class = "navbar-form">

<Button class = "navbar-btn">

<Span class = "navbar-text">

<A class = "navbar-link navbar-text">

</Div>

</Div>

</Div>

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.