css - 列表样式 CSS 重写回默认值

标签 css

我想将此 css 元素恢复为默认设置,但我不知道如何覆盖这些列表样式的 css 元素。它们位于我无法更改但正在链接的另一个样式表上。如果你知道怎么做,请帮忙。

ol li {
  list-style: decimal;
}
ol {
  list-style: decimal outside;
}

最佳答案

使用!important,例如:

ol li {
  list-style: inherit !important;
}

ol {
  list-style: inherit !important;
}

关于css - 列表样式 CSS 重写回默认值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9636132/

相关文章:

iphone - 使站点在 iPhone 上对称对齐

html - 无序列表问题

html - 阻止 <a> 内联 <li> 行为

overflow - 为什么这个内联 block 元素被向下推?

html - 容器 div 框阴影

css - 在表格类中设置 CSS 图像背景时出现问题

CSS 页脚在每个维度上都无法正常工作

css - 减少 Angular Material 树中的行高

twitter-bootstrap - 如何在不同的视口(viewport)尺寸下停止改变 div 高度的文本长度

css - 呈现比其他字体更大的特定字体