css: text-decoration 为文本添加下划线、删除线和下划线
最编程
2024-07-09 17:14:36
...
<style>
.none {text-decoration: none}
.underline {text-decoration: underline}
.overline {text-decoration: overline}
.line-through {text-decoration: line-through}
.blink {text-decoration: blink}
.inherit {text-decoration: inherit}
</style>
<p class="none">默认</p>
<p class="underline">下划线</p>
<p class="overline">上划线</p>
<p class="line-through">删除线</p>
<p class="blink">闪烁文本</p>
<p class="inherit">从父元素继承</p>