gpt4 book ai didi

html - mat-card 在 div 中没有响应 - Angular/material

转载 作者:行者123 更新时间:2023-11-28 15:09:42 25 4
gpt4 key购买 nike

有什么方法可以让我在一个 div 中显示多张小纸卡,以便它们环绕它们所在的容器?

最佳答案

你可以试试这个

添加flex-flow: row wrap; (flex-flow: <‘flex-direction’> || <‘flex-wrap’>)

然后 display: inline-flex; 这将使容器宽度等于内容大小。

.flex-me {
display: inline-flex;
flex-flow: row wrap;
background: grey;
}

mat-card {
height: 150px;
width: 200px;
}

希望这对您有所帮助。

关于html - mat-card 在 div 中没有响应 - Angular/material,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48686233/

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