判断当前浏览器是否是IE内核。呵,IE。
<script type="text/javascript">
//ie?
if (!!window.ActiveXObject || "ActiveXObject" in window) {
//是
alert("IE下");
} else {
//不是
alert("非IE");
}
</script>
让浏览器优先不使用IE内核,在<head>中加入如下代码:
<meta name=”renderer” content=”webkit” />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
转载请注明出处
《判断当前浏览器是否是IE内核》https://www.ywlib.com/archives/142.html (from 一闻自习室)
本文固定链接
https://www.ywlib.com/archives/142.html
标签
none