今次介紹 background-clip: text,可以為文字加上背景圖片,或者配合 background: linear-gradient();
做漸變色文字。
.text-bg-clip {
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: rgba(0, 0, 0, 0);
}
今次介紹 background-clip: text,可以為文字加上背景圖片,或者配合 background: linear-gradient();
做漸變色文字。
.text-bg-clip {
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: rgba(0, 0, 0, 0);
}