<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>404，抱歉，您访问的页面不存在！</title>
<style type="text/css">
* {
	padding:0;
	margin:0;
	font-family: 'Microsoft Yahei';
}
a {
	text-decoration:none
}
.notfoud-container .img-404 {
	height:155px;
	background:url('http://yun.hdwebseo.com/images/404.png') center center no-repeat;
	-webkit-background-size:150px auto;
	margin-top:40px;
	margin-bottom:20px
}
.notfoud-container .notfound-p {
	line-height:22px;
	font-size:17px;
	padding-bottom:15px;
	border-bottom:1px solid #f6f6f6;
	text-align:center;
	color:#262b31
}
.notfoud-container .notfound-p2 {
	line-height:40px;
	font-size:14px;
	padding-top:15px;
	border-bottom:1px solid #f6f6f6;
	text-align:center;
	color:#717679
}
.notfoud-container .notfound-reason {
	color:#9ca4ac;
	font-size:13px;
	line-height:13px;
	text-align:left;
	width:210px;
	margin:0 auto
}
.notfoud-container .notfound-reason p {
	margin-top:13px
}
.notfoud-container .notfound-reason ul li {
	margin-top:10px;
	margin-left:36px
}
.notfoud-container .notfound-btn-container {
	margin:40px auto 0;
	text-align:center
}
.notfoud-container .notfound-btn-container .notfound-btn {
	display:inline-block;
	border:1px solid #ebedef;
	background-color:#239bf0;
	color:#fff;
	font-size:15px;
	border-radius:5px;
	text-align:center;
	padding:10px;
	line-height:16px;
	white-space:nowrap
}
#sp{color: red;font-weight: 600;}
</style>
</head>
<body>
<div class="notfoud-container">
  <div class="img-404">
  </div>
  <p class="notfound-p">哎呀迷路了...</p>
  <div class="notfound-reason">
      <p>可能的原因：</p>
      <ul>
          <li>原来的页面不存在了</li>
          <li>我们的服务器被外星人劫持了</li>
      </ul>
  </div>
  <div class="notfound-btn-container">
      <a class="notfound-btn" href="/">返回首页</a>
  </div>
  <p class="notfound-p2">页面将在【 <span id="sp">5</span> 】秒后自动跳转</p>
</div>
<script type="text/javascript">
onload=function(){
setInterval(go, 1000);
};
var x=5; //利用了全局变量来执行
function go(){
x--;
if(x>0){
document.getElementById("sp").innerHTML=x; //每次设置的x的值都不一样了。
}else{
location.href='/';
}
}
</script>
</body>
</html>