About Bootstrap Grid system

后端 未结 3 1368
花落未央
花落未央 2021-01-26 11:44

I\'m confused about this part of code in the source code of bootstrap 3.3.5

/*line 1585 - 1590*/
.container {
  padding-         


        
3条回答
  •  半阙折子戏
    2021-01-26 12:23

    Bootstrap columns have 15px left and right padding so that their content is properly spaced out. However, this pushes the first and last column’s content 15px away from the parent. To compensate, the row has negative left and right 15px margins. This is why you should always place columns within rows.

提交回复
热议问题