我的html是:
<html> <body> <div id="example">this is example</div> </body> <html>
我的css是:
#example{text-decoration: line-through;color:#ccc;}
我像这样出门,但我想要这样,但我不能.帮我这样做
解决方法
颜色适用于通过和文字.你需要嵌套.
<span style="text-decoration: line-through; color: red;"> <span style="color: #CCC;">text with red linethrough and black text</span> </span>
资料来源:http://www.savio.no/artikler/a/335/different-font-color-than-line-through-color-with-css