增加IE8及以下浏览器提示信息,并且引导用户升级IE浏览器

This commit is contained in:
Argo-Lenovo 2016-12-14 14:40:14 +08:00
parent 4ccd01392a
commit 1e55674122
4 changed files with 22 additions and 1 deletions

View File

@ -107,6 +107,7 @@
<Content Include="App_Data\ErrorLog\Readme.txt" />
<Content Include="Content\css\bootstrap-datetimepicker.css" />
<Content Include="Content\css\bootstrap-datetimepicker.min.css" />
<Content Include="Content\css\IE8.css" />
<Content Include="Content\images\error_icon.png" />
<Content Include="Content\js\bootstrap-datetimepicker.js" />
<Content Include="Content\js\bootstrap-datetimepicker.min.js" />

View File

@ -0,0 +1,11 @@
.alert {
position: absolute;
top: 15px;
left: 15px;
right: 15px;
z-index: 10;
}
.alert div {
display: inline-block;
}

View File

@ -306,7 +306,7 @@
showToggle: true, //是否显示详细视图和列表视图的切换按钮
cardView: false, //是否显示详细视图
detailView: false, //是否显示父子表
clickToSelect: false,
clickToSelect: false
}, options);
$(this).bootstrapTable(settings);
$('div.toolbar').insertBefore($('div.bootstrap-table > div.fixed-table-toolbar > div.bs-bars'));

View File

@ -9,9 +9,18 @@
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link href="~/Content/css/bootstrap.css" rel="stylesheet">
<link href="~/Content/css/bootstrap-theme.css" rel="stylesheet">
<!--[if lte IE 9 ]>
<link href="../Content/css/IE8.css" rel="stylesheet" />
<![endif]-->
@RenderSection("css", false)
</head>
<body>
<!--[if lte IE 9 ]>
<div id="ieAlert" class="alert alert-danger alert-dismissible">
<div>你的浏览器版本太低不能完美的支持本系统请升级到至少IE9 <a href="../IE/IE9.exe" target="_blank">速速点击下载</a> </div>
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span></button>
</div>
<![endif]-->
@RenderBody()
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="~/content/js/jquery-1.10.2.js"></script>