Bootstrap Row负边距

时间:2017-09-27 17:11:19

标签: html css twitter-bootstrap twitter-bootstrap-3

为什么Bootstrap行元素有margin-left: -15pxmargin-right: -15px?当row元素嵌套到col-**-*元素中时,它甚至会在其官方网站上突出显示。使嵌套row不能从其父col-**-*中突出的最佳方法是什么?

Link to the screenshot

1 个答案:

答案 0 :(得分:0)

您可以在bootstrap之后调用自定义样式表文件来覆盖bootstrap css规则。

.row {
  margin: 0;
}

如果您只想将此应用于嵌套在col - *

中的行
[class*=”col-”] .row {
  margin: 0;
}
相关问题