【发布时间】:2013-06-19 14:24:57
【问题描述】:
我在每个主流浏览器上都遇到过同样奇怪的问题:一个元素被两个 text-decoration 属性设置样式。
第一个装饰来自父元素,第二个来自元素本身。这是relevant HTML:
<div style="text-decoration: underline">
<span style="text-decoration: line-through">Hello</span>
</div>
如何覆盖第一个声明,而不是添加到它?
【问题讨论】:
标签: html css text-decorations