排行榜序号样式设计,纯css的

.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;
    }

1

2

3

4

效果图如下:

排行榜序号样式设计,纯css的_第1张图片

 

 

你可能感兴趣的:(css,css)