【发布时间】:2018-09-11 03:31:29
【问题描述】:
【问题讨论】:
【问题讨论】:
是的,您可以使用 text-fill-color 和 background-clip 属性。
html, body {
background: #000;
}
p {
margin: 0px;
}
#clip {
background: linear-gradient(to right, rgba(127, 127, 127, 1) 23%, rgba(234, 85, 7, 1) 20%, rgba(234, 85, 7, 1) 57%, rgba(127, 127, 127, 1) 59%);
background-attachment: fixed;
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
font-size: 8vw;
font-weight: bold;
text-align: center;
}
<p id="clip">Lorem ipsum dolor sit </p>
注意:请访问this link了解更多信息。
【讨论】: