草庐IT

mainCopy

全部标签

html - 我可以重置 CSS 属性而不是覆盖它吗?

我正在处理的网页已经有一些基本样式表,其中一个包含这条规则:address:not(:last-child),fieldset:not(:last-child),li:not(:last-child),ol:not(:last-child),p:not(:last-child),table:not(:last-child),ul:not(:last-child){margin-bottom:12px}这是在我的上应用12pxmargin-bottom|标签,我对此不感兴趣。我希望能够用.mainCopy{margin-bottom:0}覆盖它,但显然基本规则比我的规则更具体。这迫使我制

html - 我可以重置 CSS 属性而不是覆盖它吗?

我正在处理的网页已经有一些基本样式表,其中一个包含这条规则:address:not(:last-child),fieldset:not(:last-child),li:not(:last-child),ol:not(:last-child),p:not(:last-child),table:not(:last-child),ul:not(:last-child){margin-bottom:12px}这是在我的上应用12pxmargin-bottom|标签,我对此不感兴趣。我希望能够用.mainCopy{margin-bottom:0}覆盖它,但显然基本规则比我的规则更具体。这迫使我制