我試圖讓container-fluid第二個row伸展到剩余的高度,但我找不到辦法做到這一點(diǎn)。我已經(jīng)嘗試設(shè)置align-items/align-self到stretch,但也不能工作。以下是我的代碼結(jié)構(gòu):<div class="container-fluid"> <!-- I want this container to stretch to the height of the parent --> <div class="row"> <div class="col"> <h5>Header</h5> </div> </div> <div class="row"> <!-- I want this row height to filled the remaining height --> <widgets [widgets]="widgets" class="hing"></widgets> <div class="col portlet-container portlet-dropzone"> <!-- if row is not the right to stretch the remaining height, this column also fine --> <template row-host></template> </div> </div></div>我正在使用Bootstrap 4 A6。有人可以建議我如何使容器和行拉伸剩余的高度?
- 1 回答
- 0 關(guān)注
- 377 瀏覽
添加回答
舉報
0/150
提交
取消