如:
xxx | xxx | xxx | xxx
.text-wrap::after {
content:'';
display:inline-block;
width:1px;
height:12px;
vertical-align:middle;
background:#e4e4e4;
margin:auto 12px;
}
.text-wrap {
&:last-of-type {
&::after {
display:none;
}
}
}
本文详细解释了CSS中`.text-wrap::after`伪元素的使用,包括其内容设置、宽度、高度和隐藏的条件,以及如何应用于文本包装效果。
如:
xxx | xxx | xxx | xxx
.text-wrap::after {
content:'';
display:inline-block;
width:1px;
height:12px;
vertical-align:middle;
background:#e4e4e4;
margin:auto 12px;
}
.text-wrap {
&:last-of-type {
&::after {
display:none;
}
}
}
8万+
5172
4006
1657

被折叠的 条评论
为什么被折叠?