【CSS】排行榜实现




    
    Title
  



音乐排行榜

  1. 以爱为囚满舒克
  2. STAYThe KMuid LAROI/Justin BicN9eber
  3. 以爱为囚满舒克
  4. 以爱为囚满舒克
  5. 以爱为囚满舒克
  6. 以爱为囚满舒克
  7. 以爱为囚满舒克
  8. 以爱为囚满舒克
  9. 以爱为囚满舒克
  10. 以爱为囚满舒克

CSS

.music_cort{
    width: 200px;
    border: 1px solid #e8e8e8;
}
.music_cort *{
    margin: 0;
    padding: 0;
    font:normal 12px/24px "黑体",Verdana,Lucida,Arial,Helvetica,sans-serif;
}
.music_cort h1{
    height: 24px;
    text-indent: 10px;
    font-weight: bold;
    color: #ffffff;
    background-color: #cb1a1a;
}
.music_cort ol{
    height: 220px;
    padding-left: 26px;
    list-style: none;
    background-color: #ededed;
}
.music_cort li{
    width: 100%;
    height: 22px;
    list-style: decimal;
}
.music_cort li span{
    color: #cccccc;
    padding-left: 10px;
}
.music_cort a{
    color: black;
    text-decoration: none;
}

效果

【CSS】排行榜实现_第1张图片

你可能感兴趣的:(css,css3,js,less,html)