.text{
background-image: linear-gradient(to right, red, blue);
color: transparent;
-webkit-text-fill-color: transparent;
background-clip: text;
-webkit-background-clip: text;
}
CSS 实现文字渐变色
于 2024-02-05 14:17:13 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)