App.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. <template>
  2. <div id="app">
  3. <Router-view />
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. mounted() {
  9. document.querySelector("#app").style.height = window.innerHeight + "px";
  10. },
  11. };
  12. </script>
  13. <style lang="less">
  14. // // 滚动条整体部分,其中的属性有width,height,background,border等。
  15. // ::-webkit-scrollbar { width: 1.3vw; height: 1.3vw; } /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
  16. // // 滚动条两端的按钮。可以用display:none让其不显示,也可以添加背景图片,改变颜色。
  17. // ::-webkit-scrollbar-button { display: none; }
  18. // // 滑动轨道。可以用display:none让其不显示,也可以添加背景图片,改变颜色。另外还有::webkit-scrollbar-track-piece这个是内层轨道?有吗?
  19. // ::-webkit-scrollbar-track { background: rgba(84, 84, 84, 0.11); border-radius: 0.5vw; }
  20. // // 滑块
  21. // ::-webkit-scrollbar-thumb { background: linear-gradient(0deg, #FF615C 0%, #FF9877 100%); border-radius: 0.5vw; }
  22. // // 横竖滚动条轨道交汇处
  23. // ::-webkit-scrollbar-corner { display: none; }
  24. // ::-webkit-scrollbar-resizer { display: none; }
  25. #app {
  26. width: 100vw;
  27. // max-width: 500px;
  28. margin: 0 auto;
  29. overflow: hidden;
  30. }
  31. </style>