How to ignore parent css style

前端 未结 10 1506
逝去的感伤
逝去的感伤 2020-12-23 18:58

I\'m wondering how to ignore a parent style and use the default style (none). I\'ll show my specific case as an example but I\'m pretty sure this is a general question.

10条回答
  •  被撕碎了的回忆
    2020-12-23 19:00

    There are a bunch of values that can be used to undo CSS rules: initial, unset & revert. More details from the CSS Working Group at W3C:

    https://drafts.csswg.org/css-cascade/#defaulting-keywords

    As this is 'draft' not all are fully supported, but unset and initial are in most major browsers, revert has less support.

提交回复
热议问题