首页 > 怎么能让网页在ie7模式下运行??

怎么能让网页在ie7模式下运行??

想让ie浏览器模拟ie7显示网页,网上查看了解到在head元素里面添加
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> 就可以,
但是添加后没有发生作用??求大神指点
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
</head>



有用的哦,另外只是要模拟的话用高版本IE在控制台里设置可模拟低版本,或者用IEtest,
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> 这个样子看着胃疼


单单看你发的代码,在本地测试一下是没有什么问题的。

可以看看是不是其他地方出现问题:比如你的浏览器版本。
另外说句题外话:IE=EmulateIE7IE=7的区别


<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=7">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>test</title>
</head>
<body>
</body>
</html>
【热门文章】
【热门文章】