What is the purpose of .row in Bootstrap?

后端 未结 2 912
梦谈多话
梦谈多话 2020-11-28 15:11

According to Bootstrap\'s documentation

Rows must be placed within a .container (fixed-width) or .container-fluid (full-widt

2条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-28 15:16

    The .row elements have a negative margin on both sides. All the columns have a padding taking care of the spacing, even the first and the last one (which is something we don't want) so the .row pulls them back to fix that. Also, I think it makes more sense to have more rows in a container, instead of columns.

提交回复
热议问题