前言
在别的网站看到有这么一个从右往左移动的网站公告,今天特意扒过来了,免费分享给大家
效果预览
![图片[1]-子比主题美化 给WordPress网站添加一个彩色渐变的从右往左移动公告-慕云乘风的笔记](https://mycfbk.cn/wp-content/uploads/2025/03/QQ2024712-235657-HD20247122359421.gif)
使用方法
<div class="textwidget custom-html-widget">
<style>#nr{font-size:20px;margin: 0;background: -webkit-linear-gradient(left,#ffffff,#ff0000 6.25%,#ff7d00 12.5%,#ffff00 18.75%,#00ff00 25%,#00ffff 31.25%,#0000ff 37.5%,#ff00ff 43.75%,#ffff00 50%,#ff0000 56.25%,#ff7d00 62.5%,#ffff00 68.75%,#00ff00 75%,#00ffff 81.25%,#0000ff 87.5%,#ff00ff 93.75%,#ffff00 100%);-webkit-background-clip: text;-webkit-text-fill-color: transparent;background-size: 200% 100%;animation: masked-animation 2s infinite linear;}@keyframes masked-animation {0% {background-position: 0 0;}100% {background-position: -100%, 0;}}</style><div style="background-color:#333;border-radius:25px;box-shadow:0px 0px 5px #f200ff;padding:5px;margin-top:10px;margin-bottom:0px;"><marquee>
<b id="nr">公告:欢迎光临慕云乘风博客,每天签到可领取积分,积分可免费兑换VIP会员</b> </marquee></div>
</div>
© 版权声明
THE END