.c-index {
display: inline-block;
padding: 1px 0;
color: #fff;
width: 14px;
line-height: 100%;
font-size: 12px;
text-align: center;
background-color: #8eb9f5;
}
.c-gap-icon-right-small {
margin-right: 5px;
}
.c-index-hot, .c-index-hot1 {
background-color: #f54545;
}
.c-index-hot2 {
background-color: #ff8547;
}
.c-index-hot3 {
background-color: #ffac38;
}
<span class="c-index c-index-hot1 c-gap-icon-right-small">1</span>
<span class="c-index c-index-hot2 c-gap-icon-right-small">2</span>
<span class="c-index c-index-hot3 c-gap-icon-right-small">3</span>
<span class="c-index c-gap-icon-right-small">4</span>
效果图如下: