From a70f8f7d7f0b042f268fd4d27f2916696aa41457 Mon Sep 17 00:00:00 2001 From: Argo-MacBookPro Date: Sat, 6 Oct 2018 12:46:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E4=BB=A3=E7=A0=81=EF=BC=9A?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0IE10=E5=85=BC=E5=AE=B9=E6=80=A7=EF=BC=8C?= =?UTF-8?q?=E7=A7=BB=E9=99=A4const/let=E5=85=B3=E9=94=AE=E5=AD=97=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0-ms-overflow-style=E4=BF=AE=E9=A5=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Views/Shared/_Layout.cshtml | 2 +- Bootstrap.Admin/wwwroot/css/IE8.css | 15 ++++++--------- Bootstrap.Admin/wwwroot/css/site-responsive.css | 5 +++++ Bootstrap.Admin/wwwroot/css/site.css | 4 +++- Bootstrap.Admin/wwwroot/js/longbow.common.js | 4 ++-- Bootstrap.Admin/wwwroot/js/settings.js | 2 +- Bootstrap.Client/wwwroot/css/IE8.css | 8 ++++++++ Bootstrap.Client/wwwroot/css/site.css | 4 +++- 8 files changed, 29 insertions(+), 15 deletions(-) create mode 100644 Bootstrap.Client/wwwroot/css/IE8.css diff --git a/Bootstrap.Admin/Views/Shared/_Layout.cshtml b/Bootstrap.Admin/Views/Shared/_Layout.cshtml index 2fe29369..3c4d48a2 100644 --- a/Bootstrap.Admin/Views/Shared/_Layout.cshtml +++ b/Bootstrap.Admin/Views/Shared/_Layout.cshtml @@ -13,7 +13,7 @@ diff --git a/Bootstrap.Admin/wwwroot/css/IE8.css b/Bootstrap.Admin/wwwroot/css/IE8.css index 633ee118..e24a0361 100644 --- a/Bootstrap.Admin/wwwroot/css/IE8.css +++ b/Bootstrap.Admin/wwwroot/css/IE8.css @@ -1,11 +1,8 @@ -.alert { - position: absolute; - top: 15px; - left: 15px; - right: 15px; - z-index: 100; +body > header, body > aside, body > section, body > footer { + display: none; } - .alert div { - display: inline-block; - } +.alert { + margin: 15px auto; + width: 90%; +} diff --git a/Bootstrap.Admin/wwwroot/css/site-responsive.css b/Bootstrap.Admin/wwwroot/css/site-responsive.css index 969ed612..35513503 100644 --- a/Bootstrap.Admin/wwwroot/css/site-responsive.css +++ b/Bootstrap.Admin/wwwroot/css/site-responsive.css @@ -52,6 +52,10 @@ } @media (min-width: 768px) { + html { + -ms-overflow-style: none; + } + .sidebar-open aside { transform: translate(0); } @@ -63,6 +67,7 @@ .main-content { position: fixed; overflow: auto; + -ms-overflow-style: auto; } } diff --git a/Bootstrap.Admin/wwwroot/css/site.css b/Bootstrap.Admin/wwwroot/css/site.css index cbf54c8b..731e478a 100644 --- a/Bootstrap.Admin/wwwroot/css/site.css +++ b/Bootstrap.Admin/wwwroot/css/site.css @@ -1,5 +1,6 @@ html { font-size: 16px; + -ms-overflow-style: auto; } body { @@ -97,6 +98,7 @@ a, a:hover, a:focus { /*Title*/ .sidebar-toggle-box { + display: block; font-size: 1.25rem; color: #777; flex: 1 1 auto; @@ -243,7 +245,6 @@ a, a:hover, a:focus { .userinfo .dropdown-item { display: flex; - flex-wrap: wrap; width: 270px; padding: 0; justify-content: space-around; @@ -313,6 +314,7 @@ a, a:hover, a:focus { flex: 1 1 auto; text-align: center; margin-left: 4px; + display: inline-block; } .go-top { diff --git a/Bootstrap.Admin/wwwroot/js/longbow.common.js b/Bootstrap.Admin/wwwroot/js/longbow.common.js index 22092288..191dc31f 100644 --- a/Bootstrap.Admin/wwwroot/js/longbow.common.js +++ b/Bootstrap.Admin/wwwroot/js/longbow.common.js @@ -207,8 +207,8 @@ bc: function (options) { if (this.attr('lgb_click')) return this; this.attr('lgb_click', true); - const callback = options.callback; - const that = this; + var callback = options.callback; + var that = this; options.callback = function () { that.removeAttr('lgb_click'); if ($.isFunction(callback)) callback.apply(arguments); }; $.bc(options); return this; diff --git a/Bootstrap.Admin/wwwroot/js/settings.js b/Bootstrap.Admin/wwwroot/js/settings.js index 2e0b7be2..dff6eccd 100644 --- a/Bootstrap.Admin/wwwroot/js/settings.js +++ b/Bootstrap.Admin/wwwroot/js/settings.js @@ -67,7 +67,7 @@ return $.format(html, ele.Interval, ele.Key, ele.Desc, ele.Value, $.format(item.Url, ele.Key), item.Self, ele.ElapsedSeconds); }).join(''); - let cache = $('
'); + var cache = $('
'); cache.append($.format('
{0}
', item.Desc)); cache.append(content); $sortable.append(cache); diff --git a/Bootstrap.Client/wwwroot/css/IE8.css b/Bootstrap.Client/wwwroot/css/IE8.css new file mode 100644 index 00000000..e24a0361 --- /dev/null +++ b/Bootstrap.Client/wwwroot/css/IE8.css @@ -0,0 +1,8 @@ +body > header, body > aside, body > section, body > footer { + display: none; +} + +.alert { + margin: 15px auto; + width: 90%; +} diff --git a/Bootstrap.Client/wwwroot/css/site.css b/Bootstrap.Client/wwwroot/css/site.css index 40f26488..25809927 100644 --- a/Bootstrap.Client/wwwroot/css/site.css +++ b/Bootstrap.Client/wwwroot/css/site.css @@ -1,5 +1,6 @@ html { font-size: 16px; + -ms-overflow-style: auto; } body { @@ -97,6 +98,7 @@ a, a:hover, a:focus { /*Title*/ .sidebar-toggle-box { + display: block; font-size: 1.25rem; color: #eee; flex: 1 1 auto; @@ -249,7 +251,6 @@ a, a:hover, a:focus { .userinfo .dropdown-item { display: flex; - flex-wrap: wrap; width: 270px; padding: 0; justify-content: space-around; @@ -319,6 +320,7 @@ a, a:hover, a:focus { flex: 1 1 auto; text-align: center; margin-left: 4px; + display: inline-block; } .go-top {