【发布时间】:2016-08-31 11:05:16
【问题描述】:
我有一个对象数组,需要以两列布局显示 目前有些列的数据比其他列多,所以我需要等高的行。
我使用 bootstrap 来显示数据,但它没有等高的行。我也用过clearfix,但是没用。
<ng-include src="itemTemplateSrc" ng-repeat-start="tag in item.fields | filter:filterTagsByTagName" class="col-md-12"></ng-include>
<div class="clearfix" ng-if="$index%2===1"></div>
<div ng-repeat-end=""></div>
现在我想用两列布局在 html 中显示数据而不拆分我的数组,因为我也有过滤器。
如何在 HTML 表格中显示单个对象数组中的数据。
【问题讨论】:
-
如何使用 flex 来获得相等的行数。
标签: angularjs html twitter-bootstrap css