404页面如何自动跳转到首页?网站404页面是怎么制作的,废话不多说,直接上代码。
!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/>
<title>很抱歉,网站搬新家啦!</title>
<styletype="text/css">
body{margin:0px;padding:0px;font-family:"微软雅黑",Arial,"TrebuchetMS",Verdana,Georgia,Baskerville,Palatino,Times;font-size:16px;}
p{margin-left:auto;margin-right:auto;}
a{text-decoration:none;color:#1064A0;}
a:hover{color:#0078D2;}
img{border:none;}
h1,h2,h3,h4{
/*display:block;*/
margin:0;
font-weight:normal;
font-family:"微软雅黑",Arial,"TrebuchetMS",Helvetica,Verdana;
}
h1{font-size:44px;color:#0188DE;padding:20px0px10px0px;}
h2{color:#0188DE;font-size:16px;padding:10px0px40px0px;}
#page{width:910px;padding:20px20px40px20px;margin-top:80px;}
.button{width:180px;height:28px;margin-left:0px;margin-top:10px;background:#009CFF;border-bottom:4pxsolid#0188DE;text-align:center;}
.buttona{width:180px;height:28px;display:block;font-size:14px;color:#fff;}
.buttona:hover{background:#5BBFFF;}
</style>
</head>
<body>
<pid="page"style="border-style:dashed;border-color:#e4e4e4;line-height:30px;background:url(sorry.png)no-repeatright;">
<h1>网站搬新家啦,即将跳转新网址~</h1>
<h2>Thewebsiteismovingtoanewhome.Itisabouttojumptothenewwebsite.</h2>
<metahttp-equiv="refresh"content="0.1;url=https://www.baidu.com">
<fontcolor="#666666">若网页未能自动跳转新网址,请点击下面按钮进行跳转!</font><br/><br/>
<pclass="button">
<ahref="https://www.baidu.com"title="进入新网址">进入新网址</a>
</p>
</p>
</body>
</html>
如需转载,请注明文章出处和来源网址:http://www.divcss5.com/html/h54589.shtml