css - Ionic 4:透明标题
问题描述
我想让我的标题背景颜色透明。我的HTML如下:
account.page.html
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-back-button defaultHref="home"></ion-back-button>
</ion-buttons>
<ion-title>Account</ion-title>
</ion-toolbar>
</ion-header>
account.page.scss
ion-header {
--ion-toolbar-background-color: rgba(0, 0, 0, 0);
}
这使得背景颜色为白色,而不是透明。我还尝试background: transparent
通过 Chrome Inspector 对每个元素进行设置。但我只是得到white
。
任何帮助如何实现这一目标?
解决方案
推荐阅读
- python - Python的Pyserial可以接受的/dev/cu.usbmodem143301的MacOS的可行串行端口名称是什么?
- javascript - 在按钮单击时将视频添加到页面
- react-native - 如何检查组件中的当前活动页面?
- opentbs - OpenTBS 将公式输入 xlsx 单元格
- python - 如何删除df中整个列的某个字符之后的所有内容?
- android - Android RadioGroup 在双向数据绑定中获取选中的 RadioButton 索引(位置)
- ios - 在应用程序而不是 Safari 中打开 LPLinkView url
- java - while (1) 带有 continue 和 break 语句的循环
- r - rstatix 包安装
- ssl - Nginx + OCSP - 大量“请求证书状态时 OCSP 响应程序超时(110:连接超时)”相当正常吗?