【发布时间】:2014-01-14 10:02:19
【问题描述】:
我正在混合使用 Flexbox 和 Bootstrap3 来创建真正灵活的布局。
但是,我试图将 flexbox 布局中的“单元格”保持在预定的 px 高度时遇到了一些困难:
+---------------+
| +---------+ |
| | a | |
| +---------+ | a: should always be 200px high, never smaller or taller
| +---------+ |
| | | |
| | b | |
| | | |
| |---------| |
| | | |
| | c | | b and c: should share the rest of the space (100% - 200px)
| | | | equally between them (50% / 50%)
| +---------+ |
+---------------+
我尝试将 a 设置为 div :
#fixedcont {
height: 300px;
}
我在这里创建了一个小提琴:http://jsfiddle.net/StephanTual/nu83c/9/
【问题讨论】:
标签: css twitter-bootstrap-3 flexbox