【发布时间】:2018-05-20 04:17:49
【问题描述】:
这是我的代码:
<ion-content padding text-center>
<img src="../assets/img/logo.png" width="200" class="logo" />
</ion-content>
<ion-footer>
<ion-row no-padding>
<ion-col col-6 align-self-stretch>
<button ion-button full>Button</button>
</ion-col>
<ion-col col-6 align-self-stretch>
<button ion-button full>Button</button>
</ion-col>
</ion-row>
</ion-footer>
我需要删除 ion-row 和 ion-col 的填充/边距。我试过谷歌搜索,但我没有运气。我也是离子的新手。蒂亚!
截图如下:
我需要做到这一点:
【问题讨论】:
-
将
no-padding-class添加到buttons -
如果你正在用 chrome 调试 Ionic,你可以使用检查器找到由 ion-col 和 ion-row 创建的 div + 类。 (见这里)[mcgivery.com/debugging-ionic-apps-chrome-developer-tools/]
标签: javascript css angular ionic-framework