404.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <template>
  2. <div class="pages">
  3. <div class="el-container">
  4. <div class="row">
  5. <div class="lt">
  6. <img src="../assets/404/man.png" alt="">
  7. </div>
  8. <div class="rt">
  9. <p>啊!啊!啊!页面走丢了!</p>
  10. <p>别走,您可以选择调头返回上一页或者返回首页!</p>
  11. <span>Don't go, you can choose to turn around and go back to the previouspage or homepage!</span>
  12. <em>
  13. <a class="lt_btn btn" onclick="window.history.back(-1);">
  14. 返回上一页 <i class="icon_back"></i>
  15. </a>
  16. <a class="rt_btn btn" href="/">
  17. 返回首页 <i class="icon_home"></i>
  18. </a>
  19. </em>
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. </template>
  25. <script>
  26. export default {
  27. name: "Main"
  28. }
  29. </script>
  30. <style scoped>
  31. .pages {
  32. position: absolute;
  33. top: 0;
  34. left: 0;
  35. right: 0;
  36. bottom: 0;
  37. width: 100%;
  38. overflow: hidden;
  39. display: block;
  40. margin: 0 auto;
  41. /*background: #009FE9;*/
  42. background: url("../assets/img/mainBg.png")top center no-repeat;
  43. background-size: 100%;
  44. }
  45. .el-container {
  46. width: 100%;
  47. max-width: 960px;
  48. overflow: hidden;
  49. display: block;
  50. margin: 0 auto;
  51. }
  52. .row {
  53. width: 100%;
  54. overflow: hidden;
  55. display: block;
  56. margin: 0 auto;
  57. margin-top: 20%;
  58. }
  59. em,s {
  60. font-style: normal;
  61. }
  62. a {
  63. text-decoration: none;
  64. }
  65. .row .lt {
  66. width: 50%;
  67. float: left;
  68. }
  69. .row .rt {
  70. width: 50%;
  71. float: right;
  72. padding-top: 15%;
  73. color: #fff;
  74. }
  75. .row .rt p {
  76. max-width: 500px;
  77. font-size: 24px;
  78. margin-bottom: 20px;
  79. }
  80. .row .rt span {
  81. font-size: 16px;
  82. }
  83. .row .btn {
  84. border: 2px solid #fff;
  85. border-radius: 250px;
  86. text-align: center;
  87. padding: 13px 47px;
  88. font-size: 18px;
  89. background: #009FE9;
  90. color: #fff;
  91. }
  92. .row .lt_btn {
  93. float: left;
  94. }
  95. .row .rt_btn {
  96. float: right;
  97. }
  98. .row .btn:hover {
  99. background: #fff;
  100. color: #009FE9;
  101. }
  102. .row em {
  103. width: 100%;
  104. overflow: hidden;
  105. float: left;
  106. max-width: 450px;
  107. font-size: 24px;
  108. margin-top: 53px;
  109. }
  110. .rt a {
  111. cursor: pointer;
  112. }
  113. /*响应式调整*/
  114. @media(min-width:320px) and (max-width: 481px) {
  115. .row .lt {
  116. display: none;
  117. }
  118. .row .rt {
  119. width: 100%;
  120. overflow: hidden;
  121. display: block;
  122. margin: 0 auto;
  123. }
  124. .row em {
  125. width: 100%;
  126. overflow: hidden;
  127. display: block;
  128. margin: 0 auto;
  129. margin-top: 40px;
  130. }
  131. .row .btn {
  132. width: 200px;
  133. overflow: hidden;
  134. display: block;
  135. margin: 0 auto;
  136. margin-bottom: 20px;
  137. font-size: 14px;
  138. float: none;
  139. }
  140. }
  141. </style>