2
我想让container-fluid
和第二个row
伸展到剩余的高度,但我找不到办法做到这一点。引导4:如何使行伸展剩余高度?
我已经尝试将align-items/align-self
设置为stretch
,但也没有工作。
下面是我的代码结构:
<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>
我使用引导4 A6。有人可以建议我如何使容器和排来拉伸剩余的高度吗?
只是一个问题,为什么我们需要'对齐,物品─在这里拉伸align-content-stretch'? – user3130446
其实没有人需要 – ZimSystem