离子卡恒定高度

问题描述 投票:0回答:1

我在幻灯片中显示一些离子卡,离子卡的高度根据内容大小而变化。如何使其恒定?

代码:

<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>

结果图:enter image description here

css ionic-framework sass ionic2 ionic3
1个回答
0
投票

没有使用离子骨架,但我会给我两美分。如果您仅使用样式参数添加最小/最大高度,是否可行?

© www.soinside.com 2019 - 2024. All rights reserved.