自定义或删除离子行之间的 space
Customize or remove space between ion row
我正在学习 Ionic 应用程序。我介绍了 Grid 东西,但是,我被困在行之间的 removing/modifying 空格处(第 2 行和第 3 行),如下面的屏幕截图所示:
我的 HTML 中有以下代码:
<ion-content padding>
<ion-row>
<ion-label> I am good I do not want any space.</ion-label>
</ion-row>
<ion-row>
<div >
<div class="inner">
<ion-label *ngIf="!inverse" no-margin>1 USD = 67 INR</ion-label>
<ion-label *ngIf="inverse" no-margin>1 INR = {{(1/67) | number }} USD </ion-label>
</div>
<button (click)="inverse=!inverse" ion-button clear class="iconWidth" color="dark"> <ion-icon name="swap" class="rotate"></ion-icon></button>
</div>
</ion-row>
<ion-row>
<p>Can you help me to get rid of space between this row and above</p>
<ion-label> Thanks</ion-label>
</ion-row>
</ion-content>
SCSS:
page-home {
.rotate {
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-o-transform: rotate(90deg);
-ms-transform: rotate(90deg);
transform: rotate(90deg);
margin-bottom: 15px;
}
.inner{
display: inline-block;
width:70%;
}
.iconWidth{
width:20%;
}
}
如何自定义第 2 行和第 3 行之间的间距?
尝试像这样使用 no-padding
和 no-margin
以及您想要关闭的其他
<ion-row no-padding>
<p no-margin>Can you help me to get rid of space between this row and above</p>
<ion-label> Thanks</ion-label>
或
.inner{
display: inline-block;
width:70%;
margin-bottom: 0px;
}
使用负数margin-top
html
<ion-row class="bottomRow">
<p>Can you help me to get rid of space between this row and above</p>
scss
.bottomRow
{
margin-top: -20px;
}
对我有用的是进入标签,将其与 class="foo"
链接,然后设置 .foo{padding:0px}
我正在学习 Ionic 应用程序。我介绍了 Grid 东西,但是,我被困在行之间的 removing/modifying 空格处(第 2 行和第 3 行),如下面的屏幕截图所示:
我的 HTML 中有以下代码:
<ion-content padding>
<ion-row>
<ion-label> I am good I do not want any space.</ion-label>
</ion-row>
<ion-row>
<div >
<div class="inner">
<ion-label *ngIf="!inverse" no-margin>1 USD = 67 INR</ion-label>
<ion-label *ngIf="inverse" no-margin>1 INR = {{(1/67) | number }} USD </ion-label>
</div>
<button (click)="inverse=!inverse" ion-button clear class="iconWidth" color="dark"> <ion-icon name="swap" class="rotate"></ion-icon></button>
</div>
</ion-row>
<ion-row>
<p>Can you help me to get rid of space between this row and above</p>
<ion-label> Thanks</ion-label>
</ion-row>
</ion-content>
SCSS:
page-home {
.rotate {
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-o-transform: rotate(90deg);
-ms-transform: rotate(90deg);
transform: rotate(90deg);
margin-bottom: 15px;
}
.inner{
display: inline-block;
width:70%;
}
.iconWidth{
width:20%;
}
}
如何自定义第 2 行和第 3 行之间的间距?
尝试像这样使用 no-padding
和 no-margin
以及您想要关闭的其他
<ion-row no-padding>
<p no-margin>Can you help me to get rid of space between this row and above</p>
<ion-label> Thanks</ion-label>
或
.inner{
display: inline-block;
width:70%;
margin-bottom: 0px;
}
使用负数margin-top
html
<ion-row class="bottomRow">
<p>Can you help me to get rid of space between this row and above</p>
scss
.bottomRow
{
margin-top: -20px;
}
对我有用的是进入标签,将其与 class="foo"
链接,然后设置 .foo{padding:0px}