#热门
子比主题美化 – 增加一个滚动公告框

2025-10-04 0 452

效果图

子比主题美化 – 增加一个滚动公告框

代码:

在模块 – 小工具 – 所有页面-侧边栏-顶部位置 – 增加一个【自定义HTML】

把以下代码复制进去:

<style>
    @keyframes move {
        0% {
            transform: translateX(0px);
        }

        100% {
            transform: translateX(-200%);
        }
    }

    .show-notice {
        width: 100%;
        overflow: hidden;
    }

    .show-notice-hello {
        float: left;
        width: 15%;
        background-color: var(--theme-color);
    }

    .show-notice-inner {
        float: left;
        width: 80%;
        margin-left: 2%;
        overflow: hidden;
    }

    .show-notice-move-text {
        font-size: 15px;
        color: var(--main-color);
        white-space: nowrap;
        animation: move 10s linear infinite;
    }
</style>
<div class="tuc-2ea177b2-22532e-0 show-notice zib-widget tuc-2ea177b2-22532e-0">
    <div class="tuc-2ea177b2-22532e-0 show-notice-hello badge tuc-2ea177b2-22532e-0">哈喽~</div>
    <div class="tuc-2ea177b2-22532e-0 show-notice-inner tuc-2ea177b2-22532e-0">
        <div class="tuc-2ea177b2-22532e-0 show-notice-move-text tuc-2ea177b2-22532e-0">  全站积分可通过签到和每日任务获取,连续签到满30天可领取月卡会员15天,可别错过哦!</div>
    </div>
</div>

 

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

© 版权声明

星聚源码网 子比美化 子比主题美化 – 增加一个滚动公告框 https://www.xjuym.cn/819.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务

星聚源码网

QQ扫码进入[资源网交流群]

进群免费解答问题~~

快来加入吧~

我知道了