html – 修改css中的直通文本颜色
发布时间:2020-12-14 23:49:46 所属栏目:资源 来源:网络整理
导读:我的html是: html body div id="example"this is example/div /body html 我的css是: #example{text-decoration: line-through;color:#ccc;} 我像这样出门,但我想要这样,但我不能.帮我这样做 解决方法 颜色适用于通过和文字.你需要嵌套. span style="text-
我的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 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |