【发布时间】:2021-05-31 08:31:05
【问题描述】:
我写了这样的代码:
<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 和材质 UI 库(此处为 mat-card)在行之间添加垂直间隙?
提前致谢!
【问题讨论】:
标签: css angular angular-material angular-flex-layout