当前位置: 代码迷 >> 综合 >> meta标签强制客户端浏览器为google内核+兼容+双核
  详细解决方案

meta标签强制客户端浏览器为google内核+兼容+双核

热度:78   发布时间:2023-09-13 12:15:25.0

meta代码:

// 强制客户端浏览器为Google内核<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> // 设置谷歌内核<meta name="renderer" content="webkit">	

  360浏览器的head头部有一行代码作为参考:

<meta name=“renderer” content=“webkit|ie-comp|ie-stand”>

说明:

1. content的取值为webkit,ie-comp,ie-stand之一,区分大小写,分别代表用极速模式,兼容模式,IE模式打开;
2. 极速模式:使用谷歌内核;
3. 兼容模式:使用IE(Trident内核)。

  相关解决方案