简体   繁体   English

Bootstrap 3-网格系统和缩略图

[英]Bootstrap 3 - grid system and thumbnail

My grid system is like that: 我的网格系统是这样的:

在此处输入图片说明

I want to put it side by side. 我要并排。 I'm trying to do that: 我正在尝试这样做:

在此处输入图片说明

My code actually is: 我的代码实际上是:

 <div class='row'>
  <div class='col-sm-6 col-md-4'>...</div>
  <div class="col-sm-6 col-md-4">...</div>
  <div class="col-sm-6 col-md-4">...</div>
  <div class="col-sm-6 col-md-4">...</div>
 </div>

How can I do that? 我怎样才能做到这一点? I'm looking in the internet (google, forum, ...), but it's hard to find. 我正在寻找互联网(谷歌,论坛等),但是很难找到。 I'm trying to use only bootstrap. 我正在尝试仅使用引导程序。 I don't want plugins or something like that. 我不想要插件或类似的东西。

In your scenario you should keep only 3 columns for grid and move 4th column content to first column. 在您的方案中,应仅保留3列用于网格,并将第4列的内容移动到第一列。

<div class='row'>
  <div class="col-sm-6 col-md-4">... [add 4th column content here]</div>
  <div class="col-sm-6 col-md-4">...</div>
  <div class="col-sm-6 col-md-4">...</div>
</div>

But it also depends what you want to have on smaller resolutions. 但这还取决于您要在较小的分辨率上拥有什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM