App.vue 921 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <div id="app">
  3. <router-view />
  4. </div>
  5. </template>
  6. <style lang="less">
  7. html,body{
  8. width: 100%;
  9. height: 100%;
  10. overflow: hidden;
  11. }
  12. body {
  13. ::-webkit-scrollbar {
  14. width: 0.9vw;
  15. height: 0.9vw;
  16. } /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
  17. ::-webkit-scrollbar-thumb { background: #00A0E6; border-radius: 0.45vw;}
  18. ::-webkit-scrollbar-button { display: none; }
  19. ::-webkit-scrollbar-track {}
  20. // 横竖滚动条轨道交汇处
  21. ::-webkit-scrollbar-corner { background: transparent; }
  22. // 有必要给resizer设置border_radius吗?
  23. ::-webkit-scrollbar-resizer { background: transparent; }
  24. }
  25. *{
  26. margin: 0;
  27. padding: 0;
  28. }
  29. #app {
  30. width: 100%;
  31. height: 100%;
  32. }
  33. @font-face {
  34. font-family: 'DFLiShuW7';
  35. src: url('@/assets/style/DFLiShuW7.ttf');
  36. }
  37. @font-face {
  38. font-family: 'Adobe Heiti Std';
  39. src: url('@/assets/style/Adobe Heiti Std.otf');
  40. }
  41. </style>