最近在做微信小程序相关页面时,ui中存在iconfont 需要颜色渐变效果;再此记录下,方便以后查找:
<view class="icon iconfont iconwancheng_icon item-icon"></view>
.item-icon{
font-size: 52rpx;
background-image: linear-gradient(135deg,
#eb6867 0%,
#e85857 67%,
#e54746 100%);
-webkit-background-clip: text;
color:transparent;
}