<p>文字<span class="triangle-down"></span></p>
.triangle-down {
width: 0;
height: 0;
border-left: 0.4rem solid transparent;
border-right: 0.4rem solid transparent;
border-top: 0.6rem solid darkgray;
}
怎么把小三角的位置调整到文字后面
大家讲道理2017-04-17 11:58:02
用偽元素:after
<p>文字</p>
p:after {
content: "";
display: inline-block;
width: 0;
height: 0;
border-left: 0.4rem solid transparent;
border-right: 0.4rem solid transparent;
border-top: 0.6rem solid darkgray;
}