<span class="h1">css之实现字体渐变</span>
.h1 {
background: linear-gradient(to bottom, #46f7f5, #0bb1ff);
-webkit-background-clip: text;
color: transparent;
letter-spacing: 5px;
}
效果图
<span class="h1">css之实现字体渐变</span>
.h1 {
background: linear-gradient(to bottom, #46f7f5, #0bb1ff);
-webkit-background-clip: text;
color: transparent;
letter-spacing: 5px;
}
效果图
本文标题:css之实现字体渐变
本文链接:https://www.haomeiwen.com/subject/ffferktx.html
网友评论