我的 Rails 应用程序中有一个缩略图网格,但我无法让引导程序正确显示网格!正如您在下面看到的,但是它没有正确开始新行!不知道在这里做什么。我在下面包含了我的 HTML,据我所知,它符合引导示例。
<div id="image-grid" class="col-lg-10">
<div class="row">
<div class="col-sm-6 col-md-2">
<a class="thumbnail text-center" href="/images/1">
<img alt="Img 0259" src="/system/images/images/000/000/001/thumb/IMG_0259.JPG?1369368826">
2013-05-24
</a> </div>
<div class="col-sm-6 col-md-2">
<a class="thumbnail text-center" href="/images/3">
<img alt="Img 0034" src="/system/images/images/000/000/003/thumb/IMG_0034.JPG?1369649370">
2013-05-27
</a> </div>
<div class="col-sm-6 col-md-2">
<a class="thumbnail text-center" href="/images/2">
<img alt="Img 0008" src="/system/images/images/000/000/002/thumb/IMG_0008.jpg?1369649198">
2013-05-27
</a> </div>
<div class="col-sm-6 col-md-2">
<a class="thumbnail text-center" href="/images/4">
<img alt="Rsz 1971061 10153145204760484 336557482 n" src="/system/images/images/000/000/004/thumb/rsz_1971061_10153145204760484_336557482_n.jpg?1377656209">
2013-08-28
</a> </div>
<div class="col-sm-6 col-md-2">
<a class="thumbnail text-center" href="/images/5">
<img alt="Digital radiograph1" src="/system/images/images/000/000/005/thumb/digital_radiograph1.jpg?1377659810">
2013-08-28
</a> </div>
<div class="col-sm-6 col-md-2">
<a class="thumbnail text-center" href="/images/6">
<img alt="Pamo" src="/system/images/images/000/000/006/thumb/pamo.jpg?1377659876">
2013-08-28
</a> </div>
<div class="col-sm-6 col-md-2">
<a class="thumbnail text-center" href="/images/7">
<img alt="Tooth x ray 1" src="/system/images/images/000/000/007/thumb/tooth-x-ray_1.jpg?1377659952">
2013-08-28
</a> </div>
<div class="col-sm-6 col-md-2">
<a class="thumbnail text-center" href="/images/8">
<img alt="Fig9b" src="/system/images/images/000/000/008/thumb/fig9b.jpg?1377664192">
2013-08-28
</a></div>
<div class="col-sm-6 col-md-2">
<span class="glyphicon glyphicon-plus">
<a href="/images/new">Upload New Image</a>
</span>
</div>
</div>
</div>