我想只 得到一条<span>有三条线(下划线,删除线和上线),这样:(这只是一个例子,我想动态地改变它)

但是我不能text-decorations在这样的一个元素中使用很少的东西:
span {
text-decoration: overline dotted green;
text-decoration: line-through wavy aqua;
text-decoration: underline double red;
}
Run Code Online (Sandbox Code Playgroud)
我怎么能用一个<span>呢?也许我可以使用::after和::before其他语言,如SASS或LESS?
感谢帮助.
span1 {
text-decoration: line-through overline underline dotted green;;
}
span2 {
text-decoration: line-through overline underline wavy aqua;
}
span3 {
text-decoration: line-through overline underline double red;
}Run Code Online (Sandbox Code Playgroud)
<span1>Some text</span1>
<span2>Some text</span2>
<span3>Some text</span3>Run Code Online (Sandbox Code Playgroud)
使用display:inline-block和border-top和border-bottom和text-decoration
span{
display:inline-block;
border-top:dotted 1px #000;
border-bottom:thick double red;
text-decoration: line-through wavy aqua;
}Run Code Online (Sandbox Code Playgroud)
<span>Some Text</span>Run Code Online (Sandbox Code Playgroud)
对于第一个评论
span{
display:inline;
text-decoration: line-through wavy aqua;
font-size:22px;
position: relative;
}
span:after {
position: absolute;
content: "Some Text";
left: 0;
top: 0;
text-decoration: underline wavy red;
z-index:-1;
color:white;
}
span:before {
position: absolute;
content: "Some Text";
left: 0;
top: 0;
text-decoration: overline wavy black;
z-index:-1;
color:white;
}Run Code Online (Sandbox Code Playgroud)
<span>Some Text</span>Run Code Online (Sandbox Code Playgroud)
对于最后的评论
span{
display:inline;
text-decoration: line-through wavy aqua;
font-size:22px;
position: relative;
}
span:after {
position: absolute;
content: "S";
left: 0;
top: -100%;
text-decoration: underline wavy black;
z-index:-1;
color:white;
width: 100%;
letter-spacing: 1000px;
overflow: hidden;
}
span:before {
position: absolute;
content: "S";
left: 0;
top: 0;
text-decoration: underline wavy red;
z-index:-1;
color:white;
width: 100%;
letter-spacing: 1000px;
overflow: hidden;
}Run Code Online (Sandbox Code Playgroud)
<span>Some Text</span>Run Code Online (Sandbox Code Playgroud)