gpt4 book ai didi

css - 如何创建网格/平铺 View ?

转载 作者:行者123 更新时间:2023-11-28 02:51:50 25 4
gpt4 key购买 nike

<分区>

例如,我有一些类.article,我想以 GridView 的形式查看这个类。所以我应用了这种风格:

.article{
width:100px;
height:100px;
background:#333;
float:left;
margin:5px;
}

该样式将使 .article 看起来平铺/网格。它在固定高度下工作正常。但是如果我想将高度设置为自动(根据其中的数据自动拉伸(stretch)),网格看起来很糟糕。

enter image description here

我想把 View 变成这样:

enter image description here

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