CSS样式:
.general-introduction-content-item-number {
background-image:-webkit-linear-gradient(bottom,red,#fd8403,yellow);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
}
属性说明:
background: -webkit-linear-gradient(...) 为文本元素提供渐变背景。
-webkit-text-fill-color:transparent; 使用透明颜色填充文本。
-webkit-background-clip: text 用文本剪辑背景,用渐变背景作为颜色填充文本。
-webkit-linear-gradient 线性渐变
(bottom,red,#fd8403,yellow) 分别表示开始渐变的方向、渐变颜色