首页 > Web开发 > 详细

<meta http-equiv="X-UA-Compatible" content="IE=edge">

时间:2021-08-30 04:51:03      阅读:13      评论:0      收藏:0      [点我收藏+]

要兼容 IE 就需要这段代码,

Content 是说当下要用那个游览器的功能,一下是设置内容

"IE=edge"
"IE=11"
"IE=EmulateIE11"
"IE=10"
"IE=EmulateIE10"
"IE=9"
"IE=EmulateIE9
"IE=8"
"IE=EmulateIE8"
"IE=7"
"IE=EmulateIE7"
"IE=5"

 

<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">

chrome=1 是给 IE 游览器的 JavaScript 引擎加速,不过前提是必须先装 chrome plugin

 

Links:

1. https://stackoverflow.com/questions/6771258/what-does-meta-http-equiv-x-ua-compatible-content-ie-edge-do

<meta http-equiv="X-UA-Compatible" content="IE=edge">

原文:https://www.cnblogs.com/stooges/p/15195343.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!