3
我面臨問題角度2材料網格列表卡。角度2材料網格列表卡
我想顯示內部電網列表卡,但它不響應
Here is the code:
<md-grid-list cols="4">
<md-grid-tile *ngFor="let card of cards">
<md-card>
<img md-card-image src="{{card.image}}">
<md-card-content>
{{card.content}}
</md-card-content>
</md-card>
</md-grid-tile>
</md-grid-list>
你忘了' flex'。請看看[這篇文章](http://stackoverflow.com/questions/31726180/trying-to-have-a-grid-of-card-with-angular-material)。 – flashjpr
謝謝@flashjpr。我正在嘗試使用[ng2-flax-layout](https://www.npmjs.com/package/ng2-flex-layout)&但這裏的問題仍然是代碼-----