简体   繁体   中英

Ionic 4 transparent ion-content

I have an Ionic 4 app and I want a transparent content.

This does not work and always the content white. I have added this to the css as well:

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

在此处输入图片说明

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

ion-content { --background: transparent;}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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