最佳答案
HTML元素del
、strike
或s
都可以用于文本删除效果。例子:
<del>del</del>
....给:<▽>▽▽>
<strike>strike</strike> and <s>strike</s>
....给出:<罢工>罢工罢工>和罢工
具有line-through
值的CSS text-decoration
属性可以类似地使用。代码…
<span style='text-decoration:line-through'>
text-decoration:line-through
</span>
...也会呈现为:文字修饰:线穿过
但是,划线通常与文本的颜色相同。
CSS可以用来使线的颜色不同吗?