透明背景色WP

时间:2017-08-30 09:35:33

标签: css wordpress

我正在使用wordpress模板。我需要我的菜单栏是透明的,但它让我很难过。

到目前为止,我在“自定义CSS”中添加了以下css代码。但我一直都是灰色的背景。有谁知道如何在CSS中创建透明背景?

public void foo() throws Exception { //Incorrect way
}

3 个答案:

答案 0 :(得分:0)

您需要在style.css文件中添加样式

#header {
   background-color: rgba(1,1,1,0.0) !important;
}

答案 1 :(得分:0)

Install this plugin for including custom css and js

试试这个:

.fixed-header #header { background-color: transparent; }

您可能正在编辑错误的css文件。或者您的网站是缓存的。尝试按CTRL + F5刷新页面。

答案 2 :(得分:0)

试试这个:

 .fixed-header #header {
             background-color: rgba(1,1,1,0.0) !important;
             opacity: 0.5 !important; 
             background-color: transparent !important; 
      }