Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the differences between bootstrap3 and bootstrap4

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the differences between bootstrap3 and bootstrap4 related knowledge, the content is detailed and easy to understand, the operation is simple and fast, with a certain reference value, I believe you will gain after reading this bootstrap3 and bootstrap4 article, let's take a look at it.

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 uses flex layout.

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

What's the difference between bootstrap3 and 4?

Float layout adopted by Bootsrap3 and flex layout adopted by Bootstrap

The grid system in Bootstrap4 does not need to add a specified number of columns. For example, if there are 2 col in the row, the row will be evenly distributed at any size.

There are only four grid classes in Bootstrap3 (col-xs very small, col-sm small, col-md, medium col-lg large)

There are 5 kinds of grid classes in Bootstrap4 (col- is very small, col-sm- is small, col-md- is large, col-lg- is large, col-xl- is super large)

Bootstrap4 uses rem as a unit

Bootstrap4 sets column offset through offset-sm-4, while Bootstrap3 sets column offset through col-sm-offset-4

Bootstrap4 adds responsive containers such as container-sm, container-md... . when it is smaller than the screen size, it will occupy the whole screen when it is smaller than the grid class

This is the end of the article on "what are the differences between bootstrap3 and bootstrap4". Thank you for reading! I believe you all have a certain understanding of the knowledge of "what is the difference between bootstrap3 and bootstrap4". If you want to learn more, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report