其实就是:
- 在文案的下面垫一张彩色背景图
- 文字颜色设置成transparent
.text {
color: transparent;
background-image: url("xxx.jpg");
background-size: cover;
background-clip: text;
-webkit-background-clip: text;
background-repeat: no-repeat;
}
其实就是:
.text {
color: transparent;
background-image: url("xxx.jpg");
background-size: cover;
background-clip: text;
-webkit-background-clip: text;
background-repeat: no-repeat;
}