可以在右上角或者任意位置增加一个滚动的公告框,由于子比的公告栏没有滚动效果而制作。
我在子比测试没问题,其他主题请自行修改CSS适配。
找到小工具-侧边栏添加区块添加以下代码:[reply]
<!--子比滚动公告框 Made By --> <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="show-notice"> <div class="show-notice-hello badge">哈喽~</div> <div class="show-notice-inner"> <div class="show-notice-move-text"> 全站积分可通过签到和每日任务获取,可别错过哦!</div> </div> </div> <!--子比滚动公告框 Made By -->
[/reply]
看看
请先登录后发表评论!