给对应文本元素设置渐变颜色
// 为文本元素提供渐变背景
background-image: -webkit-linear-gradient(bottom, #f00, #0f0);
// 使用透明颜色填充文本
-webkit-text-fill-color: transparent;
// 用文本剪辑背景,用渐变背景作为颜色填充文本
-webkit-background-clip: text;
给对应文本元素设置渐变颜色
// 为文本元素提供渐变背景
background-image: -webkit-linear-gradient(bottom, #f00, #0f0);
// 使用透明颜色填充文本
-webkit-text-fill-color: transparent;
// 用文本剪辑背景,用渐变背景作为颜色填充文本
-webkit-background-clip: text;