我正在开发一个wordpress模板。我需要我的菜单栏是透明的,但这让我很难做到。
到目前为止,我在“自定义CSS”中添加了以下css代码。但是我总是得到一个灰色的背景。有人知道如何在CSS中制作透明的背景吗?
.fixed-header #header {
background-color: rgba(1,1,1,0.0) !important;
}
.fixed-header #header {
background-color: transparent;
}发布于 2017-08-30 17:57:55
试试这个:
.fixed-header #header {
background-color: rgba(1,1,1,0.0) !important;
opacity: 0.5 !important;
background-color: transparent !important;
}发布于 2017-08-30 17:45:53
您需要在style.css文件中添加样式
#header {
background-color: rgba(1,1,1,0.0) !important;
}发布于 2017-08-30 17:52:11
Install this plugin for including custom css and js
试试这个:
.fixed-header #header { background-color: transparent; }
您可能正在编辑错误的css文件。或者你的网站被缓存了。请尝试按CTRL + F5刷新页面。
https://stackoverflow.com/questions/45956868
复制相似问题