App.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <div id="app">
  3. <router-view :key="$route.fullPath" />
  4. </div>
  5. </template>
  6. <script>
  7. import "@vant/touch-emulator";
  8. export default {
  9. name: "App",
  10. data() {
  11. return {};
  12. },
  13. methods: {},
  14. mounted() {},
  15. components: {},
  16. };
  17. </script>
  18. <style>
  19. * {
  20. margin: 0;
  21. padding: 0;
  22. }
  23. *::-webkit-scrollbar {
  24. /*滚动条整体样式*/
  25. width: 5px;
  26. /*高宽分别对应横竖滚动条的尺寸*/
  27. height: 1px;
  28. }
  29. *::-webkit-scrollbar-thumb {
  30. /*滚动条里面小方块*/
  31. border-radius: 10px;
  32. box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  33. background: #535353;
  34. }
  35. *::-webkit-scrollbar-track {
  36. /*滚动条里面轨道*/
  37. box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  38. border-radius: 10px;
  39. background: #ededed;
  40. }
  41. html,
  42. body {
  43. width: 100%;
  44. height: 100%;
  45. }
  46. #app {
  47. width: 100%;
  48. height: 100%;
  49. margin: 0 auto;
  50. font-weight: 400;
  51. background-color: #eee;
  52. font-family: Avenir, Helvetica, Arial, sans-serif;
  53. -webkit-font-smoothing: antialiased;
  54. -moz-osx-font-smoothing: grayscale;
  55. color: #2c3e50;
  56. }
  57. .van-button:not(:last-child) {
  58. margin-right: 16px;
  59. }
  60. </style>