如何动态放置卡片并填充空白区域?
How to put the cards dynamically and fill the empty spaces?
我的objective是做这样的事情,(示例"Card Action Buttons")https://material.angularjs.org/latest/demo/card但是动态的。
<div class="md-padding" layout="row" layout-xs="column" layout-wrap>
<div flex-gt-xs="50" flex-sm="100" class="blue" ng-repeat="match in matches.matchesList">
<md-card md-whiteframe="8">
<md-card-header>
<md-card-avatar>
<md-icon class="md-avatar-icon" ></md-icon>
</md-card-avatar>
<md-card-header-text>
<span class="md-title">Title</span>
<span class="md-subhead">subhead</span>
</md-card-header-text>
</md-card-header>
<md-card-content>
<!-- Directive to show the score board -->
<p>
The titles of Washed Out's breakthrough song and the first single from Paracosm share the
two most important words in Ernest Greene's musical language: feel it. It's a simple request, as well...
</p>
</md-card-content>
</md-card>
</div>
</div>
当卡片高度不同时会发生这种情况
这是代码,但我不知道如何使用如果有人知道请告诉我http://codepen.io/TiagoSousa/pen/aNjWqd
codepen 的代码是不同的,它是为每个人工作而构建的,因为我插入堆栈的代码有指令和其他你不能做的事情
我认为由于 CSS flexbox(即 flex-direction: row
),每行的卡片都以相同的高度开始,但不确定。一种解决方案是将要显示的项目拆分为左列和右列。看看http://codepen.io/z00bs/pen/XdBgJK(我清理了你的笔...)。
我的objective是做这样的事情,(示例"Card Action Buttons")https://material.angularjs.org/latest/demo/card但是动态的。
<div class="md-padding" layout="row" layout-xs="column" layout-wrap>
<div flex-gt-xs="50" flex-sm="100" class="blue" ng-repeat="match in matches.matchesList">
<md-card md-whiteframe="8">
<md-card-header>
<md-card-avatar>
<md-icon class="md-avatar-icon" ></md-icon>
</md-card-avatar>
<md-card-header-text>
<span class="md-title">Title</span>
<span class="md-subhead">subhead</span>
</md-card-header-text>
</md-card-header>
<md-card-content>
<!-- Directive to show the score board -->
<p>
The titles of Washed Out's breakthrough song and the first single from Paracosm share the
two most important words in Ernest Greene's musical language: feel it. It's a simple request, as well...
</p>
</md-card-content>
</md-card>
</div>
</div>
当卡片高度不同时会发生这种情况
这是代码,但我不知道如何使用如果有人知道请告诉我http://codepen.io/TiagoSousa/pen/aNjWqd
codepen 的代码是不同的,它是为每个人工作而构建的,因为我插入堆栈的代码有指令和其他你不能做的事情
我认为由于 CSS flexbox(即 flex-direction: row
),每行的卡片都以相同的高度开始,但不确定。一种解决方案是将要显示的项目拆分为左列和右列。看看http://codepen.io/z00bs/pen/XdBgJK(我清理了你的笔...)。