App.vue 1.0 KB

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