.main-title-text {
background: -webkit-gradient(linear, left center, right bottom, from(#484848), to(#0097ff), to(#ffffff));
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
一切似乎都奏效了。既然我已经找到了变通方法,我该如何在渲染“欢迎来到我们的社区”文本的 div “ember14”下找到需要编辑的文件?
.custom-search-banner-wrap {
h1, p {
background: -webkit-gradient(linear, right top, left bottom, from(#eaf0ff), to(#0932a5), to(#060064));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}
点击保存。完成!
别忘了删除您之前的代码
.custom-search-banner-wrap {
// remove this part because we add this to the h1 and p
-webkit-text-fill-color: transparent;
background: -webkit-gradient(linear,right top, left bottom,from(#eaf0ff),to(#0932a5),to(#060064));
-webkit-background-clip: text;
}