We can rotate the symbol by using CSS
- transform: rotate(30deg)
.rating-result {
width: 265px;
margin: 0 auto;
}
.rating-result span {
padding: 0;
font-size: 52px;
margin: 0 3px;
line-height: 1;
color: lightgrey;
text-shadow: 1px 1px #bbb;
}
.rating-result > span:before {
content: '?';
display: inline-block;
transform: rotate(30deg);
}
.rating-result > span.active {
text-shadow: 1px 1px #c60;
}
<div class="rating-result">
<span class="active"></span>
<span class="active"></span>
<span class="active"></span>
<span></span>
<span></span>
</div>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…