<!DOCTYPE html>
<html lang=
"en">
<head>
<meta charset=
"UTF-8">
<meta name=
"viewport" content=
"width=device-width, initial-scale=1.0">
<meta http-equiv=
"X-UA-Compatible" content=
"ie=edge">
<title>Document</title>
</head>
<body>
<h1></h1>
<input type=
"button" οnclick=
"location.reload()" value=
"点击刷新">
</body>
</html>
<style>
h1 {
margin: auto;
color: darkgray;
text-
align: center;
}
input {
border: solid lavender 1px;
background: aliceblue;
border-
radius: 5px;
padding: 5px 10px;
color: cornflowerblue;
display: block;
margin: 0 auto;
font-
size: 14px;
margin-
top: 15px;
font-
weight: bold;
}
</style>
<script>
window.document.title =
'404.页面丢失';
var h1 = document.getElementsByTagName(
'H1')[
0];
h1.innerHTML =
'当前账号已掉线,请尝试登陆 ··· ···';
var input = document.createElement(
"input");
document.getElementsByTagName('H1')[
0].style.marginTop = window.innerHeight /
2 /
2 +
'px';
</script>
转载于:https://www.cnblogs.com/FGang/p/11132564.html