代码:
<div class="linear">实现字体颜色渐变</div> css:样式 .linear{ background-image: linear-gradient(136deg, #9A6000 0%, #533400 40%); -webkit-background-clip: text; color: transparent; }
插入自己想要的颜色角度等,就可以了
标签:颜色,linear,实现,渐变,字体,background From: https://www.cnblogs.com/NicoleYe/p/17353582.html