ソースを参照

滚动条颜色

natasha 2 週間 前
コミット
8376272879
1 ファイル変更16 行追加1 行削除
  1. 16 1
      src/views/bookStore/Subscribe.vue

+ 16 - 1
src/views/bookStore/Subscribe.vue

@@ -1478,8 +1478,23 @@ export default {
   }
 }
 .custom-box-bottom-box {
-  max-height: 200px;
+  max-height: 240px;
   overflow: auto;
+  &::-webkit-scrollbar {
+    width: 15px; /* 滚动条的宽度 */
+    height: 15px; /* 滚动条的高度 */
+  }
+
+  /* 滚动条滑块 */
+  &::-webkit-scrollbar-thumb {
+    background-color: #333; /* 滑块颜色 */
+    border-radius: 10px; /* 滑块圆角 */
+  }
+
+  /* 滚动条轨道 */
+  &::-webkit-scrollbar-track {
+    background: #f1f1f1; /* 轨道颜色 */
+  }
 }
 .custom-box {
   width: 538px;