Is background-color:none valid CSS?

前端 未结 7 2297
独厮守ぢ
独厮守ぢ 2020-11-28 19:04

Can anyone tell me if the following CSS is valid?

.class {
    background-color:none;
}
相关标签:
7条回答
  • 2020-11-28 19:56

    So, I would like to explain the scenario where I had to make use of this solution. Basically, I wanted to undo the background-color attribute set by another CSS. The expected end result was to make it look as though the original CSS had never applied the background-color attribute . Setting background-color:transparent; made that effective.

    0 讨论(0)
提交回复
热议问题