0
我想在特定屏幕大小的每一行中顯示固定數量的卡片,例如:大屏幕4張卡片,中等屏幕2張卡片,小屏幕1張卡片。 我試過響應-SM,響應-MD,反應靈敏,LG像這樣在ionic2/Angular2中的響應式網格
<ion-row responsive-lg>
<ion-col *ngFor="let item of items" width-25 showWhen="tablet">
<ion-card>...</ion-card>
</ion-col>
<ion-col *ngFor="let item of items" width-50 showWhen="phablet">
<ion-card>...</ion-card>
</ion-col>
</ion-row>
,但沒有運氣。
PS:我想模仿一個流佈局行爲。