在html页面中加入
<script type="text/javascript">
if (navigator.appName == "Microsoft Internet Explorer" && (navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE6.0" || navigator.appVersion.split(";")[1].replace(/[ ]/g, "") != "MSIE7.0" || navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE8.0" || navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE9.0")) {
location.href = "/static/ie.html";
}
</script>
/static/ie.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>RMS不支持老旧的IE</title>
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta name="description" content="">
<meta name="keywords" content="">
<style>
html,
body {
height: 100%;
overflow: hidden;
}
body {
background: #3cbbdc url(Content/img/browser.png) no-repeat center center;
}
</style>
</head>
<body>
</body>
</html>
Content/img/browser.png