Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些文本要显示为非粗斜体。但是,在 CSS 树的更上方,我已指定所有 H2(此元素类型)文本都应加粗。我知道使用
font-style: italic;
适用于斜体,但它使我的文字保持粗体。我如何告诉它“撤消”它的粗体然后斜体?
我试过了
font-style: normal; font-style: italic;
但这没有用。
尝试:
font-weight: normal !important;