Cancel a CSS declaration

后端 未结 8 974
礼貌的吻别
礼貌的吻别 2021-02-07 08:47

Is it possible to have a CSS rule which basically \"undoes\" a prior rule?

An example:

some text more text ot
8条回答
  •  醉梦人生
    2021-02-07 09:10

    Use this to make sure the inherit overrides whatever else might have been setting the color:

    blockquote em {
        color: inherit !important;
    }
    

提交回复
热议问题