text-decoration
属性,并设置其值为 line-through
:
text-decoration: line-through;
也可以使用其他 text-decoration 属性值组合,比如同时添加 下划线 和 删除线:
text-decoration: underline line-through;
CSS 删除线,增加颜色和样式 - CSS3 新特性:
支持样式:solid(实线,默认)、double(双线)、dotted(点线)、dashed(虚线)、wavy(波浪线)