【问题标题】:Set background color to trasparent CSS将背景颜色设置为透明 CSS
【发布时间】:2020-03-03 08:33:13
【问题描述】:

我正在尝试将此page 的背景颜色设置为透明:

.page-id-714 .container-fluid {
  background-color: transparent;

}

但我似乎无法解决正确的类别或项目。谁能指出我正确的方向?

【问题讨论】:

标签: css


【解决方案1】:

试试这个:

.top-stripe {
    background-color: transparent!important;
}

【讨论】:

    【解决方案2】:

    您将其设置在错误的类上。您需要将其设置为

    .top-stripe {
      /* Current, it's set to background-color: #fbfbfb; */
      background-color: transparent;
    }
    

    确保您在我在下面分享的选择器之后声明上述内容,否则您需要使您的选择器更具体,或者您需要使用我不推荐的!important,或者更好的是,您删除@987654325 @ 完全来自该声明。


    这是您网页上的声明..

    【讨论】:

      猜你喜欢
      • 2012-06-26
      • 2011-04-14
      • 2011-02-11
      • 2017-06-02
      • 2015-07-10
      • 2013-02-05
      • 1970-01-01
      • 2016-11-06
      • 2014-01-24
      相关资源
      最近更新 更多