Showing
3 changed files
with
11 additions
and
16 deletions
@@ -10,7 +10,6 @@ $pxConvertRem: 40; | @@ -10,7 +10,6 @@ $pxConvertRem: 40; | ||
10 | html, body { | 10 | html, body { |
11 | font-family: helvetica,Arial,"黑体"; | 11 | font-family: helvetica,Arial,"黑体"; |
12 | width: 100%; | 12 | width: 100%; |
13 | - height: 100%; | ||
14 | font-size: 12px; | 13 | font-size: 12px; |
15 | line-height: 1.4; | 14 | line-height: 1.4; |
16 | } | 15 | } |
1 | -.err-page { | ||
2 | - position: relative; | ||
3 | - height: 100%; | ||
4 | - | ||
5 | - .err-bg { | ||
6 | - position: absolute; | ||
7 | - height: 200rem / $pxConvertRem; | ||
8 | - width: 200rem / $pxConvertRem; | ||
9 | - top: 50%; | ||
10 | - left: 50%; | ||
11 | - margin-left: -100rem / $pxConvertRem; | ||
12 | - margin-top: -100rem / $pxConvertRem; | ||
13 | - background: image-url('404.png') no-repeat; | ||
14 | - background-size: 100% 100%; | ||
15 | - } | 1 | +.err-page .err-bg { |
2 | + position: fixed; | ||
3 | + height: 200rem / $pxConvertRem; | ||
4 | + width: 200rem / $pxConvertRem; | ||
5 | + top: 50%; | ||
6 | + left: 50%; | ||
7 | + margin-left: -100rem / $pxConvertRem; | ||
8 | + margin-top: -100rem / $pxConvertRem; | ||
9 | + background: image-url('404.png') no-repeat; | ||
10 | + background-size: 100% 100%; | ||
16 | } | 11 | } |
@@ -15,6 +15,7 @@ class ErrorController extends AbstractAction | @@ -15,6 +15,7 @@ class ErrorController extends AbstractAction | ||
15 | { | 15 | { |
16 | header('HTTP/1.1 404 Not Found'); | 16 | header('HTTP/1.1 404 Not Found'); |
17 | header('Status: 404 Not Found'); | 17 | header('Status: 404 Not Found'); |
18 | + $this->_view->display('index'); | ||
18 | } | 19 | } |
19 | 20 | ||
20 | public function errorAction($exception) | 21 | public function errorAction($exception) |
-
Please register or login to post a comment