<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>
联合写法示例
<style> .line-through-double-red { text-decoration: line-through double red; } </style> <p class="line-through-double-red">从父元素继承</p>