代码:
function IEVersion () {
if (document.documentMode) return document.documentMode;
}
if (IEVersion()) {
window.location='/error.html'
}
error.html
<!DOCTYPE html>
<!-- saved from url=(0035)http://test.exam-100.com/error.html -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="icon" href="./logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>成果转化服务中心</title>
<style>.back{
margin-top: 30px;
}.broswer{padding-top:100px;text-align:center;}.broswer ._title{margin:50px auto;}.broswer .down{width:650px;margin:0 auto;}.broswer .down ._img{width:59px;height:59px;margin:0 auto;}._imgMg{margin-top:20px;}a{text-decoration:none;color:#4688f6;}</style>
</head>
<body>
<div class="broswer" id="broswer">
<div class="_top">
<img src="./no_support.png" alt="">
</div>
<h2 class="_title"><span>你正在使用的浏览器版本过低,推荐切换极速模式或使用其他浏览器</span></h2>
<div class="down">
<div class="_img">
<img src="./chrome.png" alt="">
</div>
<div class="_imgMg"><a href="https://www.google.cn/chrome/" target="_blank">推荐使用 Google Chrome 浏览</a></div>
</div>
<div class="back"><a href="http://10.18.4.24:65002/">点击返回并切换极速模式</a>
</div>
</div>
</body></html>