经验首页 前端设计 程序设计 Java相关 移动开发 数据库/运维 软件/图像 大数据/云计算 其他经验
当前位置:技术经验 » HTMLCSS » CSS » 查看文章
404页面自动跳转到首页
来源:cnblogs  作者:子钦加油  时间:2018/9/28 17:09:00  对本文有异议

很抱歉,网站搬新家啦!

网站搬新家啦,即将跳转新网址~

The website is moving to a new home. It is about to jump to the new website.

若网页未能自动跳转新网址,请点击下面按钮进行跳转!

 

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>很抱歉,网站搬新家啦!</title>
  6.  
  7. <style type="text/css">
  8. body {margin: 0px; padding:0px; font-family:"微软雅黑", Arial, "Trebuchet MS", Verdana, Georgia,Baskerville,Palatino,Times; font-size:16px;}
  9. div{margin-left:auto; margin-right:auto;}
  10. a {text-decoration: none; color: #1064A0;}
  11. a:hover {color: #0078D2;}
  12. img { border:none; }
  13. h1,h2,h3,h4 {
  14. /* display:block;*/
  15. margin:0;
  16. font-weight:normal;
  17. font-family: "微软雅黑", Arial, "Trebuchet MS", Helvetica, Verdana ;
  18. }
  19. h1{font-size:44px; color:#0188DE; padding:20px 0px 10px 0px;}
  20. h2{color:#0188DE; font-size:16px; padding:10px 0px 40px 0px;}
  21.  
  22. #page{width:910px; padding:20px 20px 40px 20px; margin-top:80px;}
  23. .button{width:180px; height:28px; margin-left:0px; margin-top:10px; background:#009CFF; border-bottom:4px solid #0188DE; text-align:center;}
  24. .button a{width:180px; height:28px; display:block; font-size:14px; color:#fff; }
  25. .button a:hover{ background:#5BBFFF;}
  26. </style>
  27.  
  28. </head>
  29. <body>
  30.  
  31. <div id="page" style="border-style:dashed;border-color:#e4e4e4;line-height:30px;background:url(sorry.png) no-repeat right;">
  32. <h1>网站搬新家啦,即将跳转新网址~</h1>
  33. <h2>The website is moving to a new home. It is about to jump to the new website. </h2>
  34. <meta http-equiv="refresh" content="0.1;url=https://www.baidu.com">
  35. <font color="#666666">若网页未能自动跳转新网址,请点击下面按钮进行跳转!</font><br /><br />
  36. <div class="button">
  37. <a href="https://www.baidu.com" title="进入新网址">进入新网址</a>
  38. </div>
  39. </div>
  40. </body>
  41. </html>

  

感谢大家浏览到这里~~~~

 友情链接:直通硅谷  点职佳  北美留学生论坛

本站QQ群:前端 618073944 | Java 606181507 | Python 626812652 | C/C++ 612253063 | 微信 634508462 | 苹果 692586424 | C#/.net 182808419 | PHP 305140648 | 运维 608723728

W3xue 的所有内容仅供测试,对任何法律问题及风险不承担任何责任。通过使用本站内容随之而来的风险与本站无关。
关于我们  |  意见建议  |  捐助我们  |  报错有奖  |  广告合作、友情链接(目前9元/月)请联系QQ:27243702 沸活量
皖ICP备17017327号-2 皖公网安备34020702000426号