Objective:
Implementation of a responsive navigation with bootstrap Navbar component
Understand how bootstrap Navbar component works (excluding collepse.js)
Know what to do when you add a defined class name
Refit according to one's own needs
Compare your own implementation to find the difference.
1. Implementatio
Navbar source code analysis in the Bootstrap navigation bar,
1. This document analyzes the bootstrap navigation bar and Its responsive implementation methods to improve its css level.
First, paste a bootstrap navigation bar template.
Http://v3.bootcss.com/examples/navbar-fix
Bootstrap source code analysis: foRm, navbar 1, Form (foRm)
Source code file:_ Form. scssMixins/_ form. scss
1. hierarchical classification: form-group-> form-control/input-group/form-static-control-> tags2. Form-group/form-control/input-group/form-static-control containers can be displayed in two ways: block and inline-block. Table-cell is used to implement the input-group level.
.input-group {
One, forms (form)
Source file: _form.scssMixins/_form.scss
1, according to the hierarchy structure: Form-group-> form-control/input-group/form-static-control-> all kinds of labels2, Form-group/form-control/input-group/form-static-control, such as containers, divided into two types of display: block, Inline-block. and the realization Input-group level uses is Table-cell.
. input-group {
display:inline-table;
Vertical-align:middle;
. Input-group-addon,
. input-group-btn,
. Form
Form (form)
Source files:_form.scssMixins/_form.scss
1, according to the hierarchical structure: Form-group, Form-control/input-group/form-static-control, all kinds of labels2, Form-group/form-control/input-group/form-static-control and other containers, divided into two types of display: block, Inline-block. and to achieve input-group level with is Table-cell.
{ display: inline-table; vertical-align: Middle; . Input-group-addon, . input-group-btn,
bootstrap navigation bar NavBar on the IE8. Personally think that the first kind of rare and alternative, the second is the author's most recommended, the third feel the need to apply to the table, to avoid it as far as possible. You can put the selection button group into a panel, instead of the third type above the text, table content is also OK.
If you want to further study, you can click here to learn
the bootstrap elements have two, different styles, one is the label page, the other is a button group, so-called breadcrumb navigation bar is not a good solution, Because the drop-down menu in the bootstrap must be presented in the form of buttons, written text, in the IE8 is also thankless, of course, you can choose to throw away bootstrap, the great god of CSS
Article 3 bootstrap grid basics and article 3 bootstrap
Bootstrap provides a responsive, mobile device-first streaming grid system. With the increase in the screen or viewport size, the system will automatically be divided into up to 12 columns.
The grid system is similar to
Zero-Basic Bootstrap tutorial (3) and bootstrap tutorial
What is Bootstrap?
Bootstrap is a front-end framework used to quickly develop Web applications and websites. Bootstrap is based on HTML, CSS, and JAVASCRIPT.
History
Bootstrap my learning record 3 navigation bar understanding, bootstrap navigation bar
The following theoretical content is copied from the Bootstrap Chinese Network (a good bootstrap learning website)
Navigation bar default style navigation bar
A navigation bar is a basic re
can also use the. Nav-stacked class to implement stacked-vertical navigation bars. As shown in 3-3, the basic navigation style is displayed. Figure 3-3 navigation with multiple basic styles The code snippet is as follows: View code The navigation bar of the drop-down menu and the nav list are common elements of
surface (color dimmed, mouse shape changes), and the actual function still exists.
5: Navigation using the Drop-down menu.
Let's look at the following: self-labeling test, no more screenshots.
Take a look at the navigation of the Drop-down menu:
In fact, for the use of Drop-down menu Class dropdown, the basic format is like the above, or you put link a button and so on, flexible use can be.
Second, navigation bar components
Note the point:
1: The navigation bar is to
Bootstrap entry books (3) raster system, bootstrap raster
Implementation Principle
The grid system is the core of Bootstrap. It is precisely because of the existence of the grid system that Bootstrap can have such a powerful responsive layout solution. The following is an ex
Bootstrap learning path (3) --- list component, bootstrap path
The list is a component used by almost all websites. Just as bootstrap provides us with the style of this component, I will give you a brief introduction to the usage of the List component in bootstrap!
First, re
1. Icons:
2. Button:
3, Button size:
4. Display the icon in the button:
5. Drop-down menu:
Interaction: Listen for each menu click event, click on the title to display the current menu
$ ('. Dropdown-item '). Click (function () {
$ (' #dropdown-title '). Text ($ (this). text ());
});
6. Input box:
7. Navigation bar:
8. Form:
HTML5 + Bootstrap study Note 3, html5bootstrap
HTML5 aria-* and role
Aria is an Accessible Rich Internet Application. Role is used to describe the actual function of a non-standard tag, and aria-* is used to describe the specific information of this tag in a visualized situation. For example
1
What Is ARIA?:
WAI-ARIA refers to accessibility web applications. It mainly targets people with disabilities with
Bootstrap basic learning note (3) grid introduction, bootstrap note
Grid System:The implementation principle of the grid system is very simple. It only defines the container size and splits 12 parts equally (24 or 32 parts equally, but 12 parts are the most common ), then adjust the internal and external margins, and finally combine the media query to create a po
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.