来自AI助手的总结
在Zibll主题设置中通过添加自定义CSS代码实现文章随机彩色标签效果。
设置
在网站后台,Zibll主题设置
-> 全局&功能
-> 自定义代码
代码修改
在自定义css样式
编辑框中添加
/* 文章随机彩色标签 */
.widget-tag-cloud.fixed-width .but {
opacity: 0.6;
line-height: 20px !important;
padding: 4px 10px !important;
font-size: 12px !important;
}
.widget-tag-cloud.fixed-width .but:hover {
opacity: 1;
}
.widget-tag-cloud.fixed-width .but:nth-child(5n) {
background-color: #4A4A4A;
color: #FFF;
}
.widget-tag-cloud.fixed-width .but:nth-child(5n+1) {
background-color: #ff5e5c;
color: #FFF;
}
.widget-tag-cloud.fixed-width .but:nth-child(5n+2) {
background-color: #ffbb50;
color: #FFF;
}
.widget-tag-cloud.fixed-width .but:nth-child(5n+3) {
background-color: #1ac756;
color: #FFF;
}
.widget-tag-cloud.fixed-width .but:nth-child(5n+4) {
background-color: #19B5FE;
color: #FFF;
}
效果图
注:本文转载至:子比主题美化-侧边栏小工具彩色标签云
© 版权声明
THE END
暂无评论内容