可通过改变<meta name='renderer' content='webkit|ie-comp|ie-stand'> 的content内容设置浏览器的内容
content的取值为webkit,ie-comp,ie-stand之一,区分大小写,分别代表用webkit内核,IE兼容内核,IE标准内核。
极速核:<meta name="renderer" content="webkit">
e兼容内核:<meta name="renderer" content="ie-comp">
ie标准内核:<meta name="renderer" content="ie-stand">
将360浏览器模式强制转换为极速模式:
<head id='header'>
<base target="_self">
<meta charset=utf-8 />
<!-- webkit|ie-comp|ie-stand -->
<script type="text/javascript">
//非极速模式下
//极速模式下的 值为 Netscape
if (navigator.appName === 'Microsoft Internet Explorer') {
//动态添加 meta元素 并设置相关项
var headV=document.getElementById("header");
var metaV=document.createElement('meta');
metaV.name='renderer';
metaV.content='webkit';
headV.appendChild(metaV);
}
</script>
</head>