【发布时间】:2009-08-11 17:51:27
【问题描述】:
我将如何否定或删除父母的文本装饰样式?例如,在下面,文本和锚点都具有 line-through 的文本装饰,有没有办法不将其应用于锚点标签?
<span style="text-decoration:line-through;">
Dead Text
<a href="#" style="text-decoration:underline;color:Red;">Not Dead Text</a>
</span>
注意:将内部文本包装在跨度中并不是我所拥有的简单选择,因此如果可能的话,我正在寻找基于 css 样式的解决方案。
【问题讨论】:
标签: css text-decorations line-through