【发布时间】:2016-02-10 11:36:58
【问题描述】:
我有以下代码,可能会或可能不会连续提供超过 12 列。 如果超过 12 列,我怎样才能让它看起来不错?
<div collapse="gpCollapse">
<div ng-repeat="item in revealedCtrl.greatPersons" class="thumbnail col-md-3">
<img ng-src="/images/useritems/{{item.greatperson.image}}" tooltip="{{item.greatperson.name}}"/>
<div class="caption">
<h3 class="text-center">{{item.greatperson.name}}</h3>
<p class="text-justify">
{{item.greatperson.description}}
</p>
</div>
</div>
</div>
【问题讨论】:
-
“看起来不错”是一个笼统的术语。你能说得更具体点吗?
-
抱歉,我认为这是不言自明的。我希望图像显示在左侧浮动。在上面的图像中,您看到两个图像向右浮动,最后最后一个是连续的。对我来说,它看起来应该有 2 行的空间。一个有 4 个项目,另一个有 3 个
-
这看起来像是 flexbox 会派上用场的地方。引导网格功能非常有限。
-
@J4G 一个 CSS 特性,bootstrap 实际上在 version 4 中利用 :)
-
这里解释了解决此问题的多种方法:stackoverflow.com/questions/22310912/…
标签: css angularjs html twitter-bootstrap