离子刷新器背景色不会改变离子性

问题描述 投票:0回答:3

我正在使用离子刷新器来刷新应用程序中页面上的内容。但是,当我拉起离子刷新器时,背景并没有完全设置为所需的颜色。

这是我要应用到离子刷新器的CSS类:

ion-refresher {
  background-color: #dedede;
}

ion-refresher-content {
  background-color: #dedede;
}

这就是结果看起来像:

enter image description here

如何消除离子清新剂和主要成分之间的白色间隙?

ionic-framework ionic4
3个回答
1
投票

当您上拉时,将创建一个名为fixed-content的div>

enter image description here

要消除间隙,只需在.fixed-content中添加.scss例如:

 .fixed-content{
    background:#dedede;
 }

1
投票

这就是它为我工作的原因。


0
投票

Ionic 4,

© www.soinside.com 2019 - 2024. All rights reserved.