计科知识库
  • 源界面
  • 博客圈
  • 专题
  • 博友
  • 登录
  • 注册
源界面 源界面 8天前

一个跳转链接清新页面样式

html/css

XN7TI-jh

一个跳转链接的页面展示效果。
偶然访问一个网站,发现的这个,清新风格。好看,记录下来了。
源代码如下:

  1. <!doctype html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>即将离开本站</title>
  7. <meta name="robots" content="noindex, nofollow">
  8. <style>
  9. * {
  10. padding: 0;
  11. margin: 0;
  12. box-sizing: border-box;
  13. }
  14. body {
  15. background: #f8f9fa;
  16. font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  17. color: #495057;
  18. display: flex;
  19. justify-content: center;
  20. align-items: center;
  21. height: 100vh;
  22. }
  23. .container {
  24. background: #ffffff;
  25. padding: 30px;
  26. border-radius: 8px;
  27. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  28. max-width: 500px;
  29. width: 100%;
  30. text-align: center;
  31. }
  32. .title {
  33. font-size: 24px;
  34. font-weight: 600;
  35. color: #007bff;
  36. margin-bottom: 15px;
  37. }
  38. .message {
  39. font-size: 16px;
  40. margin-bottom: 20px;
  41. line-height: 1.6;
  42. color: #6c757d;
  43. }
  44. .url {
  45. font-size: 18px;
  46. color: #007bff;
  47. word-wrap: break-word;
  48. margin-bottom: 25px;
  49. display: flex;
  50. justify-content: center;
  51. align-items: center;
  52. }
  53. .url img {
  54. margin-right: 10px;
  55. width: 20px;
  56. height: 20px;
  57. }
  58. .button {
  59. background-color: #007bff;
  60. color: white;
  61. border: none;
  62. padding: 12px 25px;
  63. font-size: 16px;
  64. border-radius: 30px;
  65. cursor: pointer;
  66. transition: background-color 0.3s;
  67. }
  68. .button:hover {
  69. background-color: #0056b3;
  70. }
  71. .footer {
  72. margin-top: 20px;
  73. font-size: 14px;
  74. color: #adb5bd;
  75. }
  76. .footer a {
  77. color: #007bff;
  78. text-decoration: none;
  79. }
  80. .footer a:hover {
  81. text-decoration: underline;
  82. }
  83. </style>
  84. </head>
  85. <body>
  86. <div class="container">
  87. <img class="loading-img" src="https://wx2.vv1234.cn/sh-os1/2025/08/6abf205c2fa385fa3a91c7ef31eec8e6.png" alt="!">
  88. <div class="title">即将离开本站</div>
  89. <div class="message">
  90. 您即将离开本站,请注意您的帐号和财产安全。
  91. </div>
  92. <div class="url">
  93. <!-- 只显示域名的 favicon,保持协议和端口 -->
  94. <img src="https://favicon.cccyun.cc/https%3A%2F%2Fconsole.upyun.com" alt="网站图标">
  95. <strong>https://console.upyun.com/register/?invite=HyNLthSEM</strong>
  96. </div>
  97. <a href="https://console.upyun.com/register/?invite=HyNLthSEM" >
  98. <button class="button">继续访问</button>
  99. </a>
  100. <div class="footer">
  101. <p>如果您没有操作,链接将在 5 秒后自动跳转。</p>
  102. </div>
  103. </div>
  104. </body>
  105. </html>

演示地址:

  • © 2025 源界面 源码为笔,博客为路,写就数字未来
  • 建议
  • 图片压缩
  • | 鄂ICP备14016484号-6

    鄂公网安备 42068402000140