diff --git a/src/assets/scss/common.scss b/src/assets/scss/common.scss index 5386258b..64c2fc64 100644 --- a/src/assets/scss/common.scss +++ b/src/assets/scss/common.scss @@ -6,36 +6,65 @@ body { // overflow-y: auto; } //隐藏滚动条---------------------------------------------------------------- -div::-webkit-scrollbar { - display: none !important; - width: 0 !important; - height: 0 !important; -} -div::-moz-scrollbar { - display: none !important; - width: 0 !important; - height: 0 !important; -} -div::-o-scrollbar { - display: none !important; - width: 0 !important; - height: 0 !important; -} -body::-webkit-scrollbar { - display: none !important;; - width: 0 !important; - height: 0 !important; -} -body::-moz-scrollbar { - display: none !important; - width: 0 !important; - height: 0 !important; -} -body::-o-scrollbar { - display: none !important; - width: 0 !important; - height: 0 !important; -} +// div::-webkit-scrollbar { +// display: none !important; +// width: 0 !important; +// height: 0 !important; +// } +// div::-moz-scrollbar { +// display: none !important; +// width: 0 !important; +// height: 0 !important; +// } +// div::-o-scrollbar { +// display: none !important; +// width: 0 !important; +// height: 0 !important; +// } +// body::-webkit-scrollbar { +// display: none !important;; +// width: 0 !important; +// height: 0 !important; +// } +// body::-moz-scrollbar { +// display: none !important; +// width: 0 !important; +// height: 0 !important; +// } +// body::-o-scrollbar { +// display: none !important; +// width: 0 !important; +// height: 0 !important; +// } + +::-webkit-scrollbar { + width: 6px; /*对垂直流动条有效*/ + height: 6px; /*对水平流动条有效*/ + } + + /*定义滚动条的轨道颜色、内阴影及圆角*/ + ::-webkit-scrollbar-track{ + background-color: rgba(239, 244, 252, 1); + border-radius: 6px; + } + + + /*定义滑块颜色、内阴影及圆角*/ + ::-webkit-scrollbar-thumb{ + border-radius: 3px; + background-color: rgba(78, 166, 255, 1); + } + + /*定义两端按钮的样式*/ + ::-webkit-scrollbar-button { + background-color:cyan; + display: none; + } + + /*定义右下角汇合处的样式*/ + ::-webkit-scrollbar-corner { + background:rgba(239, 244, 252, 1);; + } //隐藏滚动条---------------------------------------------------------------- //禁止选中---------------------------------------------------------- @@ -210,7 +239,11 @@ display: none; overflow-x: scroll; display: flex; flex-direction: column; - + height: 100%; + .contentMain { + flex: 1; + overflow-y: scroll; + } }} //抽屉-------------------------------------------------------- diff --git a/src/components/BreadCrumb.vue b/src/components/BreadCrumb.vue index f441ecbe..09db5be0 100644 --- a/src/components/BreadCrumb.vue +++ b/src/components/BreadCrumb.vue @@ -61,6 +61,7 @@ export default { }, { name: "关卡", + href: "/leveladd", }, { name: "创建关卡", diff --git a/src/components/OpenPages.vue b/src/components/OpenPages.vue index becbeca6..6b3f37dd 100644 --- a/src/components/OpenPages.vue +++ b/src/components/OpenPages.vue @@ -72,7 +72,7 @@ export default { \ No newline at end of file +