, ABC shared these 12 copies.On the flat-screen medium screen, the uplink a accounted for 8 copies B accounted for 4 copies, AB shared these 12, the downlink a accounted for 10 parts B accounted for 1 parts C accounted for 1 parts, ABC shared these 12 copies.On the PC's big screen, the uplink a accounted for 4 copies B accounted for 8 copies, AB shared these 12 parts, the downlink a accounted for 1 parts B
This article mainly includes:
■ Grid Introduction■ Application Grid■ Multiple Grids
About Grid
In Bootstrap, the page is divided into 12 equal parts, which is the so-called grid.
In Bootstrap, use the class name control, w
Bootstrap frame grid system is the container flat divided into 12, in the use of the actual situation can recompile Less/sass source code to modify the value of 12. Bootstrap Framework grid system working principle:
1. The data row (. Row) must be contained in the container (. Container) so that it is given the approp
This article will mainly introduce the bootstrap grid system.
The realization of grid system is through the definition of container size, divided into 12 (or 24, 32, but 12 is the most common), and then adjust the internal and external margins, and finally combined with media inquiries, the system made a powerful response gr
these classes separately.
The following table allows you to see how Bootstrap's grid system works on a variety of screen devices.
3. Column OffsetUse. col-md-offset-* to offset the column to the right. These classes add all columns to the left side of the column by using the * selector (margin). For example,. col-md-offset-4 shifts the width of the. Col-md-4
Introduction to Bootstrapbootstrap 1. What is BootstrapA front-end framework developed by two front-end designers (HTML,CSS,JS)Simplifies the programmer's code for writing CSS2. Why use bootstrap, what are the characteristicsL learning is relatively simple, with html,css and JS can learnL Responsive layout, adaptable to a wide range of devicesL Mobile Device FirstBootstrap installation of the use environmentOfficial Web download PackageTo use
display effects. As shown below:
Col-md-8 represents 8 copies of the column in a medium screen such as a regular desktop and notebook. Col-xs-12 says it accounts for 12 of small screens, such as Tablet PCs. The code above represents a row of two columns in the normal desktop and notebook, with the first column accounting for 8, the second column being 4, the next row in the tablet computer, the first column being 12, and the second colu
, the test is on the phone, and the col-sm-screen is larger than 768px, the single Prompt is displayed on a line, the screen is less than 768px, exclusive line, trial on the tablet; . col-md-screen is larger than 992px, the cell is displayed on one line, the screen is less than 992px, exclusive line, trial on the desktop display; . col-lg-screen greater than 1200px , the cell is displayed on one line, the screen is less than 1200px, the exclusive row for large desktop displays, The above can b
1. Overall architecture
Bootstrap framework Public Six parts: (CSS component and JS plugin is its manifestation, the rest is the foundation support platform)
Forms of Expression CSS ComponentsJS Plugin Foundation Support Platform CSS12 Grid systemInfrastructure Layout ComponentsJqueryResponse-Type Design
1.1 CSS12 Grid System
12
Bootstrap the description of the grid system in the official documentation:
The
Bootstrap includes a responsive, mobile-first, non-fixed grid system that scales appropriately to 12 columns as the device or viewport size increases. It contains pre-defined classes for simple layout options, as well as powerful
Bootstrap provides a responsive, mobile-first streaming raster system that is automatically divided into up to 12 columns as the screen or viewport (viewport) size increases. It contains pre- defined classes that are easy to use , and powerful mixin for generating more semantic layouts . First, IntroductionA raster system is used to create a page layout with a series of rows and columns (column), and your content can be placed in these created layouts
table allows you to see how Bootstrap's grid system works on a variety of screen devices.
3. Column Offset
Use. col-md-offset-* to offset the column to the right. These classes add all columns to the left side of the column by using the * selector (margin). For example,. col-md-offset-4 shifts the width of the. Col-md-4 to the right by
adapt to. Here we introduce the characteristics of these classes respectively.The following table provides a detailed view of how the bootstrap grid system works on a variety of screen devices.3. Column OffsetUse the. col-md-offset-* to offset columns to the right. These classes add all columns to the left margin of the column by using the * selector. For example,. col-md-offset-
The raster system is used to create a page layout from a combination of row (row) and column (columns), which can be placed in a well-created layout.How the bootstrap grid system works:
"row" must be included in . Container , In order to give it an appropriate arrangement (aligment) and an inner complement (padding) through Point container, the interface can be placed in the middle of the brow
The grid system of the bootstrap framework works as follows:1. The data row (. Row) must be included in the container (. Container) to give it the appropriate alignment and padding (padding). Such as:2. Columns (. Column) can be added in the row (. Row), but the sum of the columns cannot exceed the total number of columns in the split, such as 12. Such as:Divclass= "Container"> Divclass= "Row">
columns, the small column total 12 columns,(3.2, when the screen device size in 970px to 1200px (you can first look at the browser to reduce to this stage), a horizontal has three columns, a large column has four small columns, the small column total 12 columns,(3.2, when the screen device size in 768px to 970px (you can first look at the browser to reduce to this stage), a horizontal has two large columns, a large column has six small columns, the small column total 12 columns,(3.2, when the s
1. IntroductionThe bootstrap incorporates a responsive, mobile-first streaming grid system that is automatically divided into up to 12 columns as the screen device or viewport (viewport) size increases. It includes easy-to-use pre-defined Classe, and powerful mixin for generating more semantic layouts.2. Grid optionsBootstrap3.x uses four raster options to form a
Offset columns:
In the bootstrap grid system we can use an offset column to make a column move to the right, as follows:
class= "Col-sm-2 col-sm-offset-1" said the column accounted for two copies and moved to the right to see the effect as follows:
Col-sm-offset-1 says move right one. Col-sm-offset-2 represents a two-part right shift, and so on. The Col-xs class does not support offset columns,
This is a very basic form of bootstrap, but is it so easy to master and understand?(1). For COL-MD Div, the default is vertical arrangement, when the viewport (screen or browser width) >992px,col-md-1 div blocks are arranged horizontally(2). Container The maximum width of the div is adaptive, according to the screen or browser "viewport" width automatically adjusted, for example, when the "viewport" width >=1200px, container div maximum width is 1170p
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.