<h1 class="txt">字体渐变</h1>
.txt {
background: linear-gradient(to bottom, #ffffff,#ffffff, #08b9f0);
background-clip: text;
-webkit-background-clip: text;
color: transparent;
}
<h1 class="txt">字体渐变</h1>
.txt {
background: linear-gradient(to bottom, #ffffff,#ffffff, #08b9f0);
background-clip: text;
-webkit-background-clip: text;
color: transparent;
}