【问题标题】:Ionic 4 transparent ion-contentIonic 4 透明离子含量
【发布时间】:2019-09-27 05:40:24
【问题描述】:

我有一个 Ionic 4 应用程序,我想要一个透明的内容。

这不起作用,并且内容总是白色的。我也将此添加到 css 中:

ion-content{
  --ion-background-color: transparent;
}

【问题讨论】:

  • ion-content { --background-color: transparent; --ion-color-base: transparent !important; }
  • 对不起,Péttrin 它不起作用

标签: css ionic-framework sass ionic4


【解决方案1】:

离子内容背景由--background scss 变量设置 https://ionicframework.com/docs/api/content

ion-content { --background: transparent;}

【讨论】:

  • 任何方式都可以通过编程来完成(例如使用 jQuery)?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2020-03-13
  • 2019-08-02
  • 2019-03-05
  • 2019-01-25
  • 2019-04-23
  • 2020-12-05
  • 1970-01-01
相关资源
最近更新 更多