html - Respond.min.js 仅适用于 IE 11 的 IE 8 仿真模式

标签 html css internet-explorer-8 ie8-compatibility-mode respond.js

respond.min.js 仅适用于 IE 11 开发者模式下的 IE explorer 8 仿真。在真正的 IE 8 上,它只是默默地不起作用,而在 IE Tester 中给出错误:“预期';' ( char 2060)”。结果是损坏的 CSS。 respond.min.js 在服务器上安装时没有修改。实际的 char № 2060 有“;”。该网站是:poiskdetei.ru。

有什么想法吗?

这是我的标题部分的代码:

<head>

<link href='http://fonts.googleapis.com/css?    
family=Open+Sans+Condensed:700&subset=latin,cyrillic-ext' rel='stylesheet' 
type='text/css'>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">

<?php echo ccr_favicon();?>

<?php if(!empty($heal_option['heal_custom_css'])) { ?>
<style>
    <?php echo esc_html($heal_option['heal_custom_css']); ?>
</style>
<?php } ?>

<?php wp_head(); ?>
<!--[if lt IE 9]> 
<script type="text/javascript" src="/html5-shiv.min.js"></script>     
<script type="text/javascript" src="/respond.min.js"></script>
<![endif]-->
</head>

最佳答案

从 IE 10 或 11(我不记得了)开始,IE 会忽略条件注释,即使在仿真模式下也是如此。所以你可以降级到以前的 IE 版本 9 或 10,然后模拟 IE8、IE7。

关于html - Respond.min.js 仅适用于 IE 11 的 IE 8 仿真模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31032394/

相关文章:

jquery - 扩展的 div-content 压低其他 div

html - grid-template-areas 不会将所有列都用于一个 div

html - 如何最好地在 div 内垂直居中图像和一些文本

jquery - jQuery ui按钮在IE8中单击时崩溃(仅)

使用最新版本的 jQuery 在 IE8 中出现 Javascript 错误

javascript - 隐藏/显示标记

html - 带有 :after pseudo element? 的 img 标签上的奇怪行为

jquery - 自动增加高度(html、CSS)

jquery - Bootstrap 页脚列堆叠和松散页脚颜色

html - IE 7/IE 8 中输入字段旁边的垂直居中文本