如何让动态列表以网格方式水平显示

问题描述 投票:0回答:1
html css twitter-bootstrap ionic-framework
1个回答
0
投票

您可以使用离子网格使您的列响应:

<ion-grid>
  <ion-row>
    <ion-col size-lg="3" size-md="3" size-sm="12" size="12"> // to make it responsive you can adjust these size values. 
      <ion-card>
        //your card content here
      </ion-card>
    </ion-col>
  </ion-row>
</ion-grid>

有关更多信息,您可以查看文档:Ion-Grid

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