html - 如何在 Bootstrap 3 中生成 "jagged"行?

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

“参差不齐”是这里最好的描述符吗?我不知道。我认为以下屏幕截图和模型足以说明这一点。 基本上,我如何使用 Bootstrap 3 获得所需的 UI?

标记(为简洁起见被截断)

<div class="row projects">
  <div class="project col-sm-4 text-center">
    Project description and picture goes here.
  </div>

  <div class="project col-sm-4 text-center">
    Project description and picture goes here.
  </div>

  <div class="project col-sm-4 text-center">
    Project description and picture goes here.
  </div>
</div>

<div class="row projects">
  <div class="project col-sm-4 text-center">
    Project description and picture goes here.
  </div>
</div>

实际

enter image description here

想要的

enter image description here

最佳答案

这不是 Bootstrap 3 的默认功能。您需要一个外部 JS 库。我个人的偏好是同位素 - http://isotope.metafizzy.co/

关于html - 如何在 Bootstrap 3 中生成 "jagged"行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34882824/

相关文章:

html - 使整个背景图像可点击

javascript - 如何在悬停时淡入一个div?

javascript - Bootstrap 轮播中的四个项目 Ng 重复?

css - 在较小的分辨率下查看时如何更改左边距样式(响应式)

css - bootstrap 3 上的透明导航栏

html - 内部div与父级的宽度不匹配

jquery - 如何向缩略图添加缩放悬停效果

html - 非方形 PNG 图像作为 IE8 中的背景图像问题

javascript - 将元素添加到 dom 并使用 jquery 应用类不应用 css3 转换

css - 如何在背景图像上方设置一个 div