透明背景色 WP [英] transparent background-color WP

查看:48
本文介绍了透明背景色 WP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个 wordpress 模板.我需要我的菜单栏是透明的,但这让我很难过.

I am working on a wordpress template. I need my menubar to be transparent, but it is giving me quite a hard time.

到目前为止,我在自定义 CSS"中添加了以下 css 代码.但我一直得到灰色背景.有人知道如何在 CSS 中制作透明背景吗?

Until now I added the following css code in the "Custom CSS". But I keep getting a grey colored background. Does anybody knows how I can make a transparent background in the CSS?

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

推荐答案

试试这个:

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

这篇关于透明背景色 WP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆