我有一个用 Ionic 编写的 html 页面。我想为网格中的每一行添加边框底部。我该怎么做。
<ion-grid *ngFor="let item of items">
<ion-row>
<ion-col>
<img src='../assets/imgs/doctor.png'>
</ion-col>
<ion-col col-10>
{{item}}
</ion-col>
</ion-row>
</ion-grid>
最佳答案
在你的app.scss
中添加如下代码:
ion-row {
border-bottom: 5px solid red;
}
它会在每一行底部添加边框。
关于css - 如何在 Ionic 3 中添加自定义 CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50618436/