404.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  7. <title>404</title>
  8. <style>
  9. body {
  10. background-color: #444;
  11. font-size: 14px;
  12. }
  13. h3 {
  14. font-size: 60px;
  15. font-size: 3vw;
  16. color: #eee;
  17. text-align: center;
  18. padding-top: 30px;
  19. font-weight: normal;
  20. }
  21. div {
  22. font-size: 30px;
  23. font-size: 2vw;
  24. color: #eee;
  25. text-align: center;
  26. padding-top: 30px;
  27. font-weight: normal;
  28. }
  29. </style>
  30. </head>
  31. <body>
  32. <center>
  33. <h1>404,您请求的页面不存在!</h1>
  34. </center>
  35. <div id="text">
  36. 请检查链接
  37. </div>
  38. <script type="text/javascript">
  39. window.onload = function () {
  40. redirect();
  41. }
  42. var i = 0;
  43. function redirect() {
  44. document.getElementById("text").innerHTML = (5 - i + " 秒后跳转回<a href=\"https://stevenapis.xyz\">主页</a>");
  45. i++;
  46. if (i > 5) {
  47. window.location.href = "https://stevenapis.xyz/";
  48. }
  49. setTimeout(redirect, 1000);
  50. }
  51. </script>
  52. </body>
  53. </html>