简体   繁体   English

IE 8中有响应的网站中断

[英]Responsive website breaks in IE 8

My website works perfectly till IE9, all hell breaks lose at IE8. 我的网站完美运行直到IE9,在IE8上都会失败。 What my header looks like: 我的标题是什么样的:

<head>
<meta content="IE=edge" http-equiv="X-UA-Compatible"/>
<!--[if lt IE 8]>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<![endif]-->
<title></title>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
<meta content="en" http-equiv="content-language" name="language"/>
<system-page-meta-keywords/>
<system-page-meta-description/>
<meta content="width=device-width, initial-scale=1, minimum-scale=1" name="viewport"/>
</head>

We also tried adding this to our htaccess file 我们还尝试将其添加到我们的htaccess文件中

<FilesMatch "\.(htm|html|php)$">
    <IfModule mod_headers.c>
        BrowserMatch MSIE ie
        Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
    </IfModule>
</FilesMatch>

How do I force old IE8 browsers to render as latest IE versions? 如何强制旧的IE8浏览器呈现为最新的IE版本? What am I doing wrong here? 我在这做错了什么? Please help, we are few hours shy of launching! 请帮助,我们几个小时的推出!

You can't usually make old versions of software behave like new ones. 您通常不能使旧版本的软件表现得像新版本。 In this case, IE8 doesn't support media queries, so you need to use a polyfill, such as Respond.js . 在这种情况下,IE8不支持媒体查询,因此您需要使用polyfill ,例如Respond.js

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM