diff --git a/src/pages/index/index.scss b/src/pages/index/index.scss index 9cc8c20..1a5bfb4 100644 --- a/src/pages/index/index.scss +++ b/src/pages/index/index.scss @@ -63,8 +63,11 @@ } .c-content { font-size: 36rpx; - color: rgba(255, 255, 255, 1); + color: transparent; font-weight: bold; + // 文字渐变 + background: linear-gradient(119.23deg, #ffffff 14.08%, #ffd6a8 90.77%); + -webkit-background-clip: text; } } } diff --git a/src/pages/my/index.scss b/src/pages/my/index.scss index ea03d95..d651f48 100644 --- a/src/pages/my/index.scss +++ b/src/pages/my/index.scss @@ -81,8 +81,11 @@ page { } .c-content { font-size: 36rpx; - color: rgba(255, 255, 255, 1); + color: transparent; font-weight: bold; + // 文字渐变 + background: linear-gradient(119.23deg, #ffffff 14.08%, #ffd6a8 90.77%); + -webkit-background-clip: text; } } }