我误解一些关于自举的嵌套行...bootstrap3嵌套行不正确的行为
- 让我们说我有1200像素的容器。
- 然后我有第一个div与col-lg-4,这意味着400px的第一级。
- 在这个col-lg-4里面我创建了第二层行,我的理解是新行将充当容器。
新的行宽应该用来计算列分解,这里400px将意味着“col-xs”,我得到错误吗?
<div class="container" style="border:1px solid">
<div class="row">
Let's say the container is 1200px
</div>
<div class="row">
<div class="col-lg-4">
<div class="row" style="border:1px solid blue;">
This div size should be 1200/4=300px (which means <b>col-xs</b> only should be active)
</div>
<div class="col-sm-6 col-md-4 col-lg-3">
<div style="border:1px solid red;">
But it is always using col-lg-3, instead of col-sm-6
</div>
</div>
</div>
</div>
How can I have the red box to use the <b>xs/sm</b> size and use half of the 300px ?
</div><!-- /.container -->
从给定的例子,我怎么可能有红色节点使用COL-SM-6,而不是COL-LG-3?
我需要让他认为这是小屏幕,而不是大的...