<div class="top_precent"> <span :class="{arrow:numPrecent<0}"></span> </div>
span{ font-size: 20px; line-height: 50px; } span:before{ content:'↑ '; color: red; //↓↑ } .arrow:before{ content: '↓'; color:rgb(0,255,173); }
效果图