<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<title>错误页</title>
<style type="text/css">
		html, body{
			border: 0;
			margin: 0;
			height: 100%;
			width: 100%;
		}
		.viewport {
			width: 100%;
			height: 100%;
			display: flex;
		    flex-direction: row-reverse;
		    align-items: center;
		}
		.error-content {
			text-align: center;
			max-width: 430px;
			display: inline-block;
			margin-top: 88px;
			margin: 0 auto;
		}

		.error-img {
			width: 100%;
		}

		.error-tip {
			margin-top: 25px;
			font-size: 16px;
		}
	</style>
</head>
<body>
<div class="viewport">
<div class="error-content">
<img src="https://media.csimum.com/error/error_404.jpg" class="error-img" />
<p class="error-tip">您要看的内容找不到了哦</p>
<p>
<small style="color:#999">
我们建议您：
<a href="/"><big>返回首页</big></a>。
<span>(<strong id="second">5</strong>s)后自动跳转</span>
</small>
</p>
</div>
</div>
<script type="text/javascript">
		var sec = 5;
		function timer (){
			setTimeout(function() {
				if ( sec <= 1 ) {
					window.location.href = "/";
				}
				else {
					sec--;
					timer();
				}
				document.getElementById('second').textContent = sec;
			}, 1000);
		}
		timer();
	</script>
</body>
</html>