Article 4 Bootstrap grid system offset column and nested column, Article 4 bootstrap
Offset column:
In the bootstrap grid system, we can use the offset column to shift the right of a
Article 4. Bootstrap grid system offset column and nested column, Article 4. bootstrap
Offset column:
In the bootstrap grid system, we can use the offset column to shift the right of a
How the 1.Bootstrap grid system worksThe grid system creates a page layout with a series of rows and columns containing content. The following is a list of how the Bootstrap grid system works:
The row must be placed within the . Container class to obtain the appropr
Http://jingyan.baidu.com/article/6f2f55a1852aa1b5b83e6c5a.htmlWe all know that bootstrap3.0 uses four raster options to form a grid system, these four options on the official website, such as many people do not understand, here with you to explain the difference between the four grid options, in fact, only one is suitable for different sizes of screen equipment. We look at the class prefix this, we would li
course, you can divide the value into more values, but it is not recommended to use this method ).
2. Use RulesBootstrap has a built-in set of responsive and mobile devices.
1. The data row (. row) must be included in the container (. container) so as to assign it an appropriate alignment and padding (padding ). For example:
2. You can add a column (. column) in a row (. row), but the sum of the columns cannot exceed the total number of columns that are evenly divided, such as 12. For example:
$ Bootstrap 3-introduction and application to 02-Grid, bootstrap02-grid
This article mainly includes:
■ Grid Introduction■ Application Grid■ Multiple Grids
About Grid
In Bootstrap,
the effect. I still haven't fully understood this sentence.
We can see that I have defined three rows.
The first row is evenly divided into three parts, each of which occupies four columns. This line is mainly used to compare with the following two lines.
There is only one element in the second row that occupies two columns, and a style class of. col-md-push-4 is added to this element. (If the element that occupies two columns moves four columns to
container (. row ).
4. You can set the padding between columns and columns by setting the padding. Then, we set a negative margin (margin) for the first and last columns to offset the influence of the inner margin (padding ).
To better understand the working principle of the Bootstrap Framework's grid system, let's look at a sketch:
Briefly explain the figure
-end framework. It is embodied in a grid system that corresponds to devices of different Display sizes and can display different display effects. As follows:
class="row">
class="col-xs-12 col-md-8">.col-xs-12 .col-md-8
Class = "col-xs-6 col-md-4">.col-xs-6 .col-md-Items4
Col-md-8 indicates that the column occupies 8 copies under a medium screen such as a normal desktop and notebook. Col-xs-12 indic
Web grid system as follows: a regular grid array to guide and standardize the layout of the page and the distribution of information. The Web grid system is developed from the planar grid system. For web design, the use of raster system, not only can make the information of the Web page more beautiful and easy to read
semantic layouts.
Let's take a look at the above statement. Bootstrap 3 is mobile-first, in this sense, the Bootstrap code starts with small-screen devices such as mobile devices, tablets, and then expands to components and grids on large-screen devices such as laptops and desktops.Mobile device First Policy
Content
Decide what is most important.
Layout
Desig
has a set of responsive, mobile devices built into it.
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 can be added (. column) in rows (. row), but the sum of the columns cannot exceed the total number of columns, such as 12, that are equally divided. Such as:
3. The specific content should be placed within the column container (columns), and only columns (column)
the LESS (or Sass) source code based on the actual situation to modify the value 12 (that is, change to 24 or 32). Of course, you can divide the value into more values, but it is not recommended to use this method ).
2. Use RulesBootstrap has a built-in set of responsive and mobile devices.
1. The data row (. row) must be included in the container (. container) so as to assign it an appropriate alignment and padding (padding ). For example:
2. You can add a column (. column) in a row (. row
generating more semantic layouts.
Let's take a look at the above statement. Bootstrap 3 is mobile-first, in this sense, the Bootstrap code starts with small-screen devices such as mobile devices, tablets, and then expands to components and grids on large-screen devices such as laptops and desktops.Mobile device First Policy
Content
Decide what is most important.
Layout
follows
We can see that the position of the column has changed.
Column nesting
The grid system of the bootstrap framework also supports nesting of columns. You can add one or more rows (. row) containers to one column, and then insert columns in the row container (using the columns as described earlier). However, the row container (. Row) in the column container, with a width of 100%, is
, table sorting, addition, editing, viewing, deletion, query (and or query can be selected), AND refresh records, export Excel; jQuery Hotkeys listen for Keyboard Events; Bootstrap Wysiwyg as a rich text editor; Quartz uses Lucene to regularly generate the index of the title, author, and body, and uses HibernateSearch for full-text search.
4. User Management: jQueryjqGrid displays
Implementation principleThe principle of grid system is very simple, simply by defining the size of the container, split 12 parts (also flat into 24 or 32 parts, but 12 is the most common), and then adjust the internal and external margins, and finally combined with media query, the system made a powerful response grid system. The grid system in the
direct child element of the row container (. Row)4. Create the spacing between columns by setting the padding (padding). The effect of the padding (padding) is then offset by setting a negative margin (margin) for the first column and the last column.1. The outermost frame, with a large white area, is equivalent to the viewable area of the browser. The bootstrap frame's
series of rows (row) with columns (column). The working principle is as follows:
1. Line (row) must be included in the. container (fixed width) or. Container-fluid (100% width) to give it an appropriate arrangement (aligment) and an inner complement (padding).
2. Create a set of columns (column) horizontally by row.
3. Your content should be placed in column, and only a direct child element of column (row) can be used.
4. A predefined class like.
In the bootstrap framework, the grid system splits the containers into 12 parts. during use, you can recompile the LESSSASS source code to modify the value 12 based on the actual situation. Next, we will introduce the Bootstrap grid system through this article. If you are interested, learning the
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.