效果

废话不多说直接开整。

1.首先呢,点击外观–>小工具 –>拖拉标签云至文章页侧栏目

2.点击ripro主题设置–>底部设置 –> 网站底部自定义JS代码

 <!-- start 标签美化-->  
  <style type="text/css">
.tagcloud a{ 
    position: relative; 
    padding: 1px 4px 2px 4px;
    margin: 0px 4px 0px 3px;
    border: 1px solid #e6e7e8; 
    border-radius: 18px; 
    text-decoration: none; 
    white-space: nowrap;
    -o-box-shadow: 6px 4px 8px 0 rgba(151,142,136,.34);
    -ms-box-shadow: 6px 4px 8px 0 rgba(151,142,136,.34);
    -moz-box-shadow: 6px 4px 8px 0 rgba(151,142,136,.34);
    -webkit-box-shadow: 6px 4px 8px 0 rgba(151,142,136,.34);
    box-shadow: 6px 4px 8px 0 rgba(151,142,136,.34);
    -ms-filter:"progid:DXImageTransform.Microsoft.Shadow(Strength=20,Direction=335, Color='#000000')";/*兼容ie7/8*/filter: progid:DXImageTransform.Microsoft.Shadow(color='#969696', Direction=125, Strength=1);
    /*strength是阴影大小,direction是阴影方位,单位为度,可以为负数,color是阴影颜色 (尽量使用数字)使用IE滤镜实现盒子阴影的盒子必须是行元素或以行元素显示(block或inline-block;)*/
}

.tagcloud a:nth-child(7n+1):hover{color:#ffffff;background-color:rgba(255,78,106,.8)}
.tagcloud a:nth-child(7n+2):hover{color:#ffffff;background-color:#ffaa73}
.tagcloud a:nth-child(7n+3):hover{color:#ffffff;background-color:#fed466}
.tagcloud a:nth-child(7n+4):hover{color:#ffffff;background-color:#3cdc82}
.tagcloud a:nth-child(7n+5):hover{color:#ffffff;background-color:#64dcf0}
.tagcloud a:nth-child(7n+6):hover{color:#ffffff;background-color:#64b9ff}
.tagcloud a:nth-child(7n+7):hover{color:#ffffff;background-color:#b4b4ff}

.tagcloud a:nth-child(7n+1){background-color:rgba(255,78,106,.15);color:rgba(255,78,106,.8)}
.tagcloud a:nth-child(7n+2){background-color:rgba(255,170,115,.15);color:#ffaa73}
.tagcloud a:nth-child(7n+3){background-color:rgba(254,212,102,.15);color:#fed466}
.tagcloud a:nth-child(7n+4){background-color:rgba(60,220,130,.15);color:#3cdc82}
.tagcloud a:nth-child(7n+5){background-color:rgba(100,220,240,.15);color:#64dcf0}
.tagcloud a:nth-child(7n+6){background-color:rgba(100,185,255,.15);color:#64b9ff}
.tagcloud a:nth-child(7n+7){background-color:rgba(180,180,255,.15);color:#b4b4ff}

.widget .tagcloud {
    font-size: 0
}

.widget .tagcloud a {
    display: inline-block;
    width: 32.39%;
    margin: 0 .7% 1.4%;
    padding: 5px 2px;
    font-size: 12px!important;
    line-height: 1.2;
    text-align: center; 
    border: 1px solid hsla(0,0%,39%,.2);
    border-radius: 2px;
    text-decoration: none;
    background: hsla(0,0%,100%,.2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.widget .tagcloud a:nth-child(1) {
    color: #3385fc;
}

.widget .tagcloud a:nth-child(2n) {
    color: #ffc12b;
}

.widget .tagcloud a:nth-child(3n) {
    color: #4CAF50;
}

.widget .tagcloud a:nth-child(4n) {
    color: #555;
}

.widget .tagcloud a:before {
    content: "#";
    padding-right: 2px;
}

.widget .tagcloud a:nth-child(3n+1) {
    margin-left: 0
}

.widget .tagcloud a:nth-child(3n+3) {
    margin-right: 0
}

.widget .tagcloud a:hover {
    color: #fff;
    background: #007bff;
    border-color: #007bff
}
</style>
<!-- end 标签美化-->
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。