Przeglądaj źródła

添加滚动条

林旭祥 4 tygodni temu
rodzic
commit
9795514103
1 zmienionych plików z 21 dodań i 0 usunięć
  1. 21 0
      src/views/train/multiple.vue

+ 21 - 0
src/views/train/multiple.vue

@@ -1665,6 +1665,27 @@ $waiPadding: 6.51rem;
   $listMargin: 5vw;
   $listWidth: calc((100% - $listMargin) / 10);
 
+  height: calc((($listMargin / 10) + 14vh) * 5);
+  overflow-y: scroll;
+
+  &::-webkit-scrollbar {
+    width: 10px;
+  }
+
+  &::-webkit-scrollbar-thumb {
+    border-width: 2px;
+    border-radius: 4px;
+    border-style: dashed;
+    border-color: transparent;
+    background-color: rgba(26, 62, 78, 0.9);
+    background-clip: padding-box;
+  }
+
+  &::-webkit-scrollbar-button:hover {
+    border-radius: 6px;
+    background: rgba(26, 62, 78, 1);
+  }
+
   .ul {
     width: 100%;
     height: 14vh;