[英]Twitter Bootstrap Grid with 1 Large column
I am having a go at Twitter Bootstrap 3 for the first time and seem to be getting stuck when it comes to the grid system. 我第一次去Twitter Bootstrap 3,似乎在涉及网格系统时陷入困境。
I am ok when it comes to using rows but I am trying to achieve a simple layout like the below image.. 在使用行时,我还可以,但是我正在尝试实现一个简单的布局,如下图所示。
I can't even work out how to begin! 我什至不知道如何开始! Does anybody have a link to a jsfiddle or similar I can have a look at to read up on? 有没有人链接到jsfiddle或类似的书供我阅读?
Use this structure: 使用以下结构:
<div class="container">
<div class="row">
<div class="col-md-8">.col-md-8</div>
<div class="col-md-4">
<div class="row">
<div class="col-md-6">.col-md-6</div>
<div class="col-md-6">.col-md-6</div>
<div class="col-md-6">.col-md-6</div>
<div class="col-md-6">.col-md-6</div>
</div>
</div>
</div>
</div>
Essentially you create two columns, and in the second column you are creating a new grid to hold your four cells. 本质上,您将创建两列,并在第二列中创建一个新的网格来容纳四个单元格。 You can change the md
in col-md-6
to break at the resolution you need. 您可以更改md
在col-md-6
在您需要的分辨率打破。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.