彩虹渐变字 2
<body>
<div style="background-color:ffffff;box-shadow:0px 0px 5px #0069ff;padding:0px;margin-top:0px;margin-bottom:1px;">
<marquee>
<b id="nr">公告:免费xx,提供稳定,海外速度快等优点,请勿违反道德用途,否则后果自负!</b>
</marquee>
</div>
</body>
</html>
<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>
|