How to ignore parent css style

前端 未结 10 1496
逝去的感伤
逝去的感伤 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

    you can create another definition lower in your CSS stylesheet that basically reverses the initial rule. you could also append "!important" to said rule to make sure it sticks.

提交回复
热议问题