Twitter bootstrap 引导程序3:列显示中的div wrap行不正确

Twitter bootstrap 引导程序3:列显示中的div wrap行不正确,twitter-bootstrap,Twitter Bootstrap,我的html结构如下所示: <main class="main col col-sm-6" role="main" style="border:1px solid yellow;"> <div class="mycontainer" style="border:1px solid red;"> <div class="row" style="border:1px solid blue;"> <!--Place here some c

我的html结构如下所示:

<main class="main col col-sm-6" role="main" style="border:1px solid yellow;">
  <div class="mycontainer" style="border:1px solid red;">
    <div class="row" style="border:1px solid blue;">
     <!--Place here some colums-->
    </div>
  </div>
</main>
有关更多详细信息,请参见此处:

为什么mycontainer的左右边框红色边框显示在行边框蓝色边框内?为什么不换行边框?如何解决这个问题


注意:我需要mycontainer包装行

不确定您的具体要求。我给你做了一把新叉子,看看这是不是你想要的?

我所做的只是从内部div中删除行样式并应用于容器div:


引导的默认css。行有一个边距:0-15px;因此,为了能够覆盖它,添加 保证金:0;回到你的那排。但是它会减少你的专栏里面的空间


你说不包“行”边是什么意思嘿,谢谢,但这不符合我的目的。我要我的集装箱包装。还有别的办法吗?