main.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <div class="container main">
  3. <v-title>Welcome</v-title>
  4. <div class="content">
  5. <div class="table-box">
  6. <div class="table-cell">Hello Welcome!</div>
  7. </div>
  8. </div>
  9. </div>
  10. </template>
  11. <style lang="scss" scoped>
  12. .container.main {
  13. position: absolute;
  14. color: #000000;
  15. top: 0;
  16. left: 0;
  17. min-width: 100%;
  18. min-height: 100%;
  19. padding: 0;
  20. margin: 0;
  21. background: url("../../../statics/images/bg3.jpg") no-repeat center;
  22. background-size: cover;
  23. .content {
  24. position: absolute;
  25. top: 0;
  26. left: 0;
  27. width: 100%;
  28. height: 100%;
  29. .table-box {
  30. text-align: center;
  31. display: table;
  32. width: 100%;
  33. height: 95%;
  34. .table-cell {
  35. display: table-cell;
  36. vertical-align: middle;
  37. font-size: 50px;
  38. margin-top: 50px;
  39. }
  40. }
  41. }
  42. }
  43. </style>
  44. <script>
  45. export default { }
  46. </script>