效果图
代码
在模块 – 小工具 – 所有页面-侧边栏-顶部位置 – 增加一个【自定义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="show-notice"><div class="show-notice-hello badge">哈喽~</div><div class="show-notice-inner"><div class="show-notice-move-text"> 全站积分可通过签到和每日任务获取,连续签到满30天可领取月卡会员15天,可别错过哦!</div></div></div><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"> 全站积分可通过签到和每日任务获取,连续签到满30天可领取月卡会员15天,可别错过哦!</div> </div> </div><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"> 全站积分可通过签到和每日任务获取,连续签到满30天可领取月卡会员15天,可别错过哦!</div> </div> </div>
感谢您的来访,获取更多精彩文章请收藏本站。

© 版权声明
THE END
暂无评论内容