gpt4 book ai didi

css - Angular/flex-layout,如何在使用 fxLayout ="row wrap"时在行之间添加垂直空间?

转载 作者:行者123 更新时间:2023-12-05 00:54:22 24 4
gpt4 key购买 nike

我写了这样的代码:

    <div fxLayout="row wrap"
fxLayoutGap="20px"
fxLayoutAlign="flex-start">
<mat-card fxFlex="0 1 calc(33.3% - 20px)"
class="my-card"
*ngFor="let item of items">
...
</mat-card>
</div>

看起来还不错,只是行之间没有空格。如何使用 Angular flex-layout 和 Material UI 库(此处为 mat-card)在行之间添加垂直间隙?

提前致谢!

最佳答案

使用网格模式: FlexLayout Grid ModefxLayoutGap="10px 网格"

关于css - Angular/flex-layout,如何在使用 fxLayout ="row wrap"时在行之间添加垂直空间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66428521/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com