This listing may contain adult content. By continuing you confirm that you are at least 18 years old (or the legal age of majority where you live) and that you choose to view this content.
.color-box { text-align: center; line-height: 1.15; background-image: url('https://i.postimg.cc/TwPmR4K6/image.gif'); background-size: cover; background-position: center; background-repeat: repeat; border: 1px solid black; padding: 5px; font-size: 1.3rem; font-weight: bold; overflow: hidden; } /* 彩虹渐变文字 */ .rainbow-text { background: linear-gradient( 90deg, #ff0000, #ff8c00, #ffff00, #00ff00, #00ffff, #0066ff, #cc00ff, #ff0080, #ff0000 ); background-size: 300% auto; color: #ff00ff; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: rainbowMove 5s linear infinite; } @keyframes rainbowMove { 0% { background-position: 0% center; } 100% { background-position: 300% center; } } /* 图片间距 */ .color-box img { display: block; margin: 0 auto 3px auto; padding: 0; max-width: 100%; height: auto; } /* 图片和文字之间 */ .rainbow-text { margin-top: 3px; padding: 0; } /* 文字上下间距 */ .text-line { margin: 1px 0; padding: 0; line-height: 1.15; }
More listings you may be interested in.