【发布时间】:2018-05-03 07:14:01
【问题描述】:
我想通过应用justify-content-end 和text-right 来选择性地右对齐某些列,当它们与每条记录的某些条件匹配时,使得呈现的版本看起来像这样:
<ion-content padding>
<ion-grid>
<ion-row>
<ion-col col-8>Stuff</ion-col>
</ion-row>
<ion-row justify-content-end text-right>
<ion-col col-8>Stuff 2</ion-col>
</ion-row>
<ion-row>
<ion-col col-8>Stuff 3</ion-col>
</ion-row>
<ion-row justify-content-end text-right>
<ion-col col-8>Stuff 4</ion-col>
</ion-row>
</ion-grid>
</ion-content>
如何将其放入代码中?我需要以某种方式使用*ngIf吗?
【问题讨论】:
标签: css angular ionic-framework ionic2