如何覆盖CSS

cin*_*nan -3 css

我正在尝试覆盖CSS但不能正常工作,怎么办?

.component.img.white *:not(.btn){
color:#fff;
}
Run Code Online (Sandbox Code Playgroud)

试图做到这一点:

 .component.img.white *:not(.btn){
  color:none !important;
  }
Run Code Online (Sandbox Code Playgroud)

Sha*_*ain 6

不是有效的css 颜色

.component.img.white *:not(.btn){
 color: transparent !important;
}
Run Code Online (Sandbox Code Playgroud)

或者你可以使用

.component.img.white *:not(.btn){
 color: unset !important;
}
Run Code Online (Sandbox Code Playgroud)