BootStap Study Notes (1)-tuohaibei

Source: Internet
Author: User
BootStap Study Notes (1)-tuohaibei Mobile device priority:

To make the developed website friendly to mobile devices and ensure proper drawing and touch screen scaling, you need to add the viewport meat tag to the head of the webpage:

 
Response Image:
By adding class = "img-responsive" to the image, the image can be better designed for responsive layout;
 Pseudo element
http://www.w3school.com.cn/css/css_pseudo_elements.asp
Bootstrap3 css has a media query request response. max-width is set for container in different media query threshold ranges to match the grid system.
  @media (min-width: 768px) {   .container {      width: 750px;  }
Grid System
A responsive, mobile device-preferred streaming grid system is provided. With the increase in the screen or viewport size, the system will automatically be divided into up to 12 columns.
Rows must be placed in. ContainerClass to obtain the appropriate alignment and padding );
Use rows to create a horizontal group of columns;
The content should be placed in the column, and only the column can be a direct sub-element of the row;
Predefined grid classes, such. RowAndCol-xs-4To quickly create a grid layout. If multiple rows exist, each row must have. row.
My personal summary: If col-sm-* col-md-* col-lg-* is defined at the same time, the matching column mode will be used if there is a match, if col-lg-* is applied in the window and col-lg-* is deleted, col-md-* is used in the window layout -*.
  

It is mainly used for resetting response columns.

Col-md-offset-* you can add * columns to the left margin (margin) of a column.

Use. Col-md-push -*And. Col-md-pull -*Class built-in grid column order to achieve column sorting, with. col-md-push-* is pushed to the left,. Col-md-pull -*Push to the right, irrelevant to their order in html

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.