我在幻灯片中显示一些离子卡,离子卡的高度根据内容大小而变化。如何使其恒定?
代码:
<ion-col *ngIf="types && types.length" no-padding>
<ion-slides slidesPerView="4">
<ion-slide nowrap *ngFor="let item of types">
<ion-card (click)="select(item.type)">
<ion-label padding-top text-center text-wrap class="text4bl">{{ item.name }}</ion-label>
</ion-card>
</ion-slide>
</ion-slides>
</ion-col>
没有使用离子骨架,但我会给我两美分。如果您仅使用样式参数添加最小/最大高度,是否可行?