Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop
Showing
3 changed files
with
3 additions
and
8 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; | 1 | +.err-page .err-bg { |
2 | + position: fixed; | ||
7 | height: 200rem / $pxConvertRem; | 3 | height: 200rem / $pxConvertRem; |
8 | width: 200rem / $pxConvertRem; | 4 | width: 200rem / $pxConvertRem; |
9 | top: 50%; | 5 | top: 50%; |
@@ -12,5 +8,4 @@ | @@ -12,5 +8,4 @@ | ||
12 | margin-top: -100rem / $pxConvertRem; | 8 | margin-top: -100rem / $pxConvertRem; |
13 | background: image-url('404.png') no-repeat; | 9 | background: image-url('404.png') no-repeat; |
14 | background-size: 100% 100%; | 10 | background-size: 100% 100%; |
15 | - } | ||
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