shaogen1995 vor 2 Jahren
Ursprung
Commit
1bc63d077e
1 geänderte Dateien mit 19 neuen und 0 gelöschten Zeilen
  1. 19 0
      src/views/Home.vue

+ 19 - 0
src/views/Home.vue

@@ -370,6 +370,8 @@ export default {
 .mb-intro {
   color: #fff;
   padding: 10px;
+  height: calc(100% - 30px);
+  overflow-y: auto;
   > p {
     line-height: 1.5;
     letter-spacing: 1px;
@@ -465,6 +467,23 @@ export default {
       font-size: 16px;
       text-indent: 32px;
     }
+    &::-webkit-scrollbar {
+      /*滚动条整体样式*/
+      width: 3px; /*高宽分别对应横竖滚动条的尺寸*/
+      height: 1px;
+    }
+    &::-webkit-scrollbar-thumb {
+      /*滚动条里面小方块*/
+      border-radius: 10px;
+      -webkit-box-shadow: inset 0 0 5px transparent;
+      background: #fff;
+    }
+    &::-webkit-scrollbar-track {
+      /*滚动条里面轨道*/
+      -webkit-box-shadow: inset 0 0 5px transparent;
+      border-radius: 10px;
+      background: transparent;
+    }
   }
   .ismtop {
     max-height: 65%;