Home  >  Article  >  Web Front-end  >  What is the difference between bootstrap3 and 4?

What is the difference between bootstrap3 and 4?

WBOY
WBOYOriginal
2022-02-11 16:35:037036browse

Differences: 1. bootstrap3 has four grid classes, bootstrap4 has five grid classes; 2. bootstrap3 uses px as the unit, bootstrap4 uses rem and em as the unit; 3. bootstrap3 uses float layout, bootstrap4 Use flex layout.

What is the difference between bootstrap3 and 4?

The operating environment of this tutorial: Windows10 system, bootstrap3.3.7 version, DELL G3 computer

What is the difference between bootstrap3 and 4

Bootsrap3 uses float layout, while Bootstrap uses flex layout

The grid system in Bootstrap4 does not need to add a specified number of columns, such as row. There are 2 cols in it and the rows will be divided evenly at any size

Bootstrap3 has only 4 kinds of raster types: (col-xs extra small, col-sm small, col-md, medium col-lg large)

Bootstrap4 has 5 kinds of raster types, (col -Extra small, col-sm-small, col-md-medium, col-lg-large, col-xl-extra large)

Bootstrap4 uses rem as the unit

Bootstrap4 sets the column offset When passing offset-sm-4, Bootstrap3 passes col-sm-offset-4

Bootstrap4 adds responsive containers such as container-sm, container-md..., when the screen size is smaller than the grid class It will fill the entire screen

What is the difference between bootstrap3 and 4?

Related recommendations: bootstrap tutorial

The above is the detailed content of What is the difference between bootstrap3 and 4?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn