Is background-color:none valid CSS?

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

Can anyone tell me if the following CSS is valid?

.class {
    background-color:none;
}
7条回答
  •  星月不相逢
    2020-11-28 19:51

    No, use transparent instead none . See working example here in this example if you will change transparent to none it will not work

    use like .class { background-color:transparent; }


    Where .class is what you will name your transparent class.

提交回复
热议问题