简体   繁体   English

离子4透明离子含量

[英]Ionic 4 transparent ion-content

I have an Ionic 4 app and I want a transparent content. 我有一个Ionic 4应用,我想要一个透明的内容。

This does not work and always the content white. 这不起作用,并且内容始终为白色。 I have added this to the css as well: 我也将其添加到CSS:

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

在此处输入图片说明

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

ion-content { --background: transparent;}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM