【发布时间】:2018-10-20 02:40:45
【问题描述】:
我正在努力使一行伸展以填充剩余的可用高度。我尝试将h-100 添加到行类中,但这会导致屏幕底部出现空白。一定有办法做到这一点,但我完全被难住了。这是我的代码:
<div class="container-fluid h-100">
<div class="row justify-content-center h-100">
<div class="col-4 bg-red">
<div class="h-100">
<div class="row justify-content-center bg-purple">
<div class="text-white">
<div style="height:200px">ROW 1</div>
</div>
</div>
<div class="row justify-content-center bg-blue">
<div class="text-white">ROW 2</div>
</div>
</div>
</div>
<div class="col-8 bg-gray"></div>
</div>
</div>
codepen:https://codepen.io/ee92/pen/zjpjXW/?editors=1100
我想让蓝色行 (ROW 2) 填满所有红色空间。有什么建议吗?
谢谢
【问题讨论】:
标签: html css grid bootstrap-4 row