<meta http-equiv=“X-UA-Compatible” content=“IE=edge”> 不适用于 IE9
<meta http-equiv=“X-UA-Compatible” content=“IE=edge”> is not working with IE9
每次当我打开一个有 <meta http-equiv="X-UA-Compatible" content="IE=edge">
的页面时,页面突然停止,它说页面没有响应,你知道在页面中关闭兼容模式的替代方法吗我可以从 IE6 到 IE10 使用吗?
根据我的经验,IE9 很棘手 - 它介于您可以处理的 7/8 和更好的 IE10 之间。
这对我来说一直适用于 IE 7-11:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<head>
<!--[if IE 8]>
<meta http-equiv="X-UA-Compatible" content="IE=7">
<![endif]-->
希望这对您有所帮助...
希望对你有帮助
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
每次当我打开一个有 <meta http-equiv="X-UA-Compatible" content="IE=edge">
的页面时,页面突然停止,它说页面没有响应,你知道在页面中关闭兼容模式的替代方法吗我可以从 IE6 到 IE10 使用吗?
根据我的经验,IE9 很棘手 - 它介于您可以处理的 7/8 和更好的 IE10 之间。
这对我来说一直适用于 IE 7-11:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<head>
<!--[if IE 8]>
<meta http-equiv="X-UA-Compatible" content="IE=7">
<![endif]-->
希望这对您有所帮助...
希望对你有帮助
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>