我如何控制 bootstrap 中列的高度?

How i control the height of columns in bootstrap?

嘿,我是 angular js 的新手,bootstrap.i 使用 col-md-4 并重复此 div 直到从 json.i 获取数据我正在使用带有一些标题和下拉列表的手风琴。如果下拉列表中的列表编号相同,则显示结果很好。

如果我扩展任何列表就会导致问题。

希望你能解决我的问题。 提前致谢!

您无法延长高度,因为没有适合它的数据。

您可以改为设置最小高度,如果 div 变大,您可以在 div 内滚动。

大致如下:

.repeatingDivs {
    max-height : 50px; /* height of the smallest div */
    overflow-y : scroll;
}

是的,您应该将 col-md-4 div 分成几行,这样每行只有三个。有点像

<div ng-if"$index % 3 == 0" class="row">
 ... your panels code