From b6b90e34e530274bff3807fa02a645e8cf3d6b5b Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Wed, 6 Mar 2019 17:15:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG=EF=BC=9AAccessDenied=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=BF=94=E5=9B=9E=E9=A6=96=E9=A1=B5=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=88=90=E5=8A=9F=E8=BF=94=E5=9B=9E=20closed=20#ISHLV?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/Account/AccessDenied.cshtml | 36 ++++++++++--------- Bootstrap.Admin/wwwroot/css/error.css | 20 ++++++++--- 2 files changed, 35 insertions(+), 21 deletions(-) diff --git a/Bootstrap.Admin/Views/Account/AccessDenied.cshtml b/Bootstrap.Admin/Views/Account/AccessDenied.cshtml index 2ff1a6ed..333edf2e 100644 --- a/Bootstrap.Admin/Views/Account/AccessDenied.cshtml +++ b/Bootstrap.Admin/Views/Account/AccessDenied.cshtml @@ -1,17 +1,21 @@ -@{ - ViewBag.Title = "未授权请求"; - Layout = "_Layout"; -} -@section css { - -} -@section javascript { - -} -
- -

网页拒绝访问

-

您无权访问本页面请联系网站管理员授权后再查看

-
- 返回首页 +@{ + ViewBag.Title = "未授权请求"; + Layout = "_Layout"; +} +@section css { + +} +@section javascript { + +} +
+ +

您的访问受限!

+

服务器拒绝处理您的请求!您可能没有访问此操作的权限

+

登录 或者 返回首页

+
+

也可能是以下原因导致您没有权限

+

1. 没有登录,请登录后查看

+

2. 当前用户未获得此资源的相应权限,请联系管理员

+
\ No newline at end of file diff --git a/Bootstrap.Admin/wwwroot/css/error.css b/Bootstrap.Admin/wwwroot/css/error.css index a7b88a62..94e1db06 100644 --- a/Bootstrap.Admin/wwwroot/css/error.css +++ b/Bootstrap.Admin/wwwroot/css/error.css @@ -1,4 +1,9 @@ -body { +html { + font-size: 16px; + -ms-overflow-style: auto; +} + +body { background: #8075c6; color: #fff; } @@ -10,16 +15,21 @@ img { .error-wrapper { text-align: center; + margin: 0 auto; + max-width: 30rem; + padding: 1rem; } .error-wrapper p { - padding-top: 15px; + padding-top: 10px; + } + + .error-wrapper div { + text-align: left; } a, a:hover, a:focus { text-decoration: none; outline: none; - font-size: 14px; - font-weight: 300; - color: #fff; + color: #371ed4; }