forked from Dxoca/Iitboy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.php
69 lines (62 loc) · 1.45 KB
/
404.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/**
* 自定义404页面
*/
if (!defined('EMLOG_ROOT')) {
exit('error!');
}
?>
<!DOCTYPE html>
<html>
<head lang="zh-CN">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="HandheldFriendly" content="True">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>抱歉 此页面被键盘大侠拿去指点江山了</title>
<style>
html {
display: table;
height: 100%;
width: 100%;
}
body {
display: table-cell;
vertical-align: middle;
}
.error {
width: 582px;
height: 363px;
margin: 0 auto;
text-align: center;
}
.keyboard {
display: block;
width: 582px;
}
.keyboard-button {
width: 180px;
margin-top: 16px;
}
@media (max-width: 582px) {
.error {
width: 80%;
}
.keyboard {
width: 100%;
}
.keyboard-button {
width: 30%;
}
}
</style>
</head>
<body>
<div class="error">
<img class="keyboard" src="<?php echo TEMPLATE_URL; ?>images/baoqian.png" alt="404"/>
<a href="/">
<img class="keyboard-button" src="<?php echo TEMPLATE_URL; ?>images/fanhui.png" alt="home"/>
</a>
</div>
</body>
</html>