是否有一个发电机,或者一个简单的方法来生成诸如文本这样,但不必定义每一封信
所以像这样:
.rainbow {
background-image: -webkit-gradient( linear, left top, right top, color-stop(0, #f22), color-stop(0.15, #f2f), color-stop(0.3, #22f), color-stop(0.45, #2ff), color-stop(0.6, #2f2),color-stop(0.75, #2f2), color-stop(0.9, #ff2), color-stop(1, #f22) );
background-image: gradient( linear, left top, right top, color-stop(0, #f22), color-stop(0.15, #f2f), color-stop(0.3, #22f), color-stop(0.45, #2ff), color-stop(0.6, #2f2),color-stop(0.75, #2f2), color-stop(0.9, #ff2), color-stop(1, #f22) );
color:transparent;
-webkit-background-clip: text;
background-clip: text;
}Run Code Online (Sandbox Code Playgroud)
<span class="rainbow">Rainbow text</span>Run Code Online (Sandbox Code Playgroud)
但不是彩虹色而是用其他颜色生成(例如白色到灰色/浅蓝色渐变等)我找不到一个简单的解决方案.有解决方案吗
我在SO上看过这里,并且发现了一些有关redirect_uri的帖子,但是我似乎无法弄清楚如何使用Localhost作为我的重定向uri。希望任何人都可以向我解释。
亲切的问候,