404.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <template>
  2. <div class="pages">
  3. <div class="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. }
  43. .container {
  44. width: 100%;
  45. max-width: 960px;
  46. overflow: hidden;
  47. display: block;
  48. margin: 0 auto;
  49. }
  50. .row {
  51. width: 100%;
  52. overflow: hidden;
  53. display: block;
  54. margin: 0 auto;
  55. margin-top: 20%;
  56. }
  57. em,s {
  58. font-style: normal;
  59. }
  60. a {
  61. text-decoration: none;
  62. }
  63. .row .lt {
  64. width: 50%;
  65. float: left;
  66. }
  67. .row .rt {
  68. width: 50%;
  69. float: right;
  70. padding-top: 15%;
  71. color: #fff;
  72. }
  73. .row .rt p {
  74. max-width: 500px;
  75. font-size: 24px;
  76. margin-bottom: 20px;
  77. }
  78. .row .rt span {
  79. font-size: 16px;
  80. }
  81. .row .btn {
  82. border: 2px solid #fff;
  83. border-radius: 33rem;
  84. text-align: center;
  85. padding: 13px 47px;
  86. font-size: 18px;
  87. background: #009FE9;
  88. color: #fff;
  89. }
  90. .row .lt_btn {
  91. float: left;
  92. }
  93. .row .rt_btn {
  94. float: right;
  95. }
  96. .row .btn:hover {
  97. background: #fff;
  98. color: #009FE9;
  99. }
  100. .row em {
  101. width: 100%;
  102. overflow: hidden;
  103. float: left;
  104. max-width: 450px;
  105. font-size: 24px;
  106. margin-top: 53px;
  107. }
  108. .rt a {
  109. cursor: pointer;
  110. }
  111. /*响应式调整*/
  112. @media(min-width:320px) and (max-width: 481px) {
  113. .row .lt {
  114. display: none;
  115. }
  116. .row .rt {
  117. width: 100%;
  118. overflow: hidden;
  119. display: block;
  120. margin: 0 auto;
  121. }
  122. .row em {
  123. width: 100%;
  124. overflow: hidden;
  125. display: block;
  126. margin: 0 auto;
  127. margin-top: 40px;
  128. }
  129. .row .btn {
  130. width: 200px;
  131. overflow: hidden;
  132. display: block;
  133. margin: 0 auto;
  134. margin-bottom: 20px;
  135. font-size: 14px;
  136. float: none;
  137. }
  138. }
  139. </style>