子比主题美化-侧边栏标签云美化

子比主题美化-侧边栏标签云美化

来自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;
}

 

效果图

20250425114450883-image

注:本文转载至:子比主题美化-侧边栏小工具彩色标签云

温馨提示:本文最后更新于2025-04-25 11:46:22,某些文章具有时效性,若有错误或已失效,请在下方留言或联系 站长
© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容