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
**/Display: block;}
@ Media (min-width: 768px) {/** pc end **/. navbar-collapse {width: auto; border-top: 0;-webkit-box-shadow: none ;}. navbar-collapse.collapse {display: block! Important;/** as a block-level display, because the navbar-header of the sibling node is a floating element, navbar-collapse occupies the wi
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 {
:_navbar.scss
1, the main internal area of the division, such as: Head, other areas, and the positioning of the navigation bar position
2, the implementation of the folding (in 4.0 has been removed), that is, the Navbar-collapse class, instead of the collapse, the button above the hidden layer popup
2.1, Navbar-collapse: When greater than breakpoint, will be forced to display (because collapse
other drop-down menu code.
(3) modify the navigation item. Copy the content of bootstrap/navbar. less to _ navbar. less to overwrite the original content. Find the comments/Brand/project name and modify the. navbar-brand padding as follows:
// Brand/project name.navbar-brand { ... padding: 10px 30px 0 15px; ...
(
DOCTYPE HTML>HTML>HeadLang= "en"> Metaname= "Viewport"content= "Width=device-width"/> MetaCharSet= "UTF-8"> title>title> new Bootstrap core CSS file - Linkrel= "stylesheet"href= "//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css"> HTML5 Shim and Respond.js for IE8 support of HTML5 elements and media queries - WARNING:Respond.js doesn ' t work if you view the page via file:// -
;Actiona>Li> Li>ahref="#">Another actiona>Li> Li>ahref="#">Something Else herea>Li> Liclass= "Divider">Li> Li>ahref="#">Separated linka>Li> Liclass= "Divider">Li> Li>ahref="#">One more separated linka>Li>ul>Li>You can see the following effects:(2) Complete the other drop-down menu code.(3) We modify the navigation items. Copy the contents of the bootstrap/navbar.less into the _navbar.less, overwriting the original content. Then find the comment/
do this is to replicate the CSS.
12345
/* need to be called after BOOTSTRAP.CSS *//* 15px for iPhone Start */. row{margin:0;}. COL-LG-1,. Col-lg-10,. Col-lg-11,. Col-lg-12,. Col-lg-2,. Col-lg-3,. Col-lg-4,. Col-lg-5,. Col-lg-6,. Col-lg-7,. Col-lg-8,. Col-lg-9,. COL-MD-1,. COL-MD-10,. COL-MD-11,. COL-MD-12,. COL-MD-2,. COL-MD-3,. COL-MD-4,. COL-MD-5,. COL-MD-6,. COL-MD-7,. COL-MD-8,. COL-MD
. Client and server execution logic is different, one is the connect one is bind, but ultimately through the channel to do the operation, that is, the channel determines the way to connect.2. The server does not need to set the server side of the handler, its built-in a serverboostrapacceptor, mainly set the channel properties of the client, this logic is ultimately by the service side of the channel read-r
controls the actions of the modal window. Modal methods mainly include show, hide, toogle, and so on, and are mainly used to control the status of modal windows. Modal trigger events include shown and hiden, which are mainly used to control the trigger control of the modal window function. For details, go to the official documentation and click the launch demo modal button. The implementation of modal is 4-1: Figure
--------------------------------------------------------- used to write the notes carefully, unscarred AH ---------------------------- ---------------------------------------------I. What is the framework for bootstrapIn fact, BootStrap, the earliest time was a synthesis of two words. Now, as a proprietary noun bootstrap, it is a front-end framework for developing Web applications and Web sites quickly.Two.
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.