响应的CSS无法正常工作

时间:2013-07-29 17:09:59

标签: html css css3 iframe media

我正在使用https://github.com/scottjehl/Respond来帮助我的浏览器兼容响应式媒体查询,但它似乎无法正常运行I.E。

我将respond.src.js文件放在与index.html / style.css相同的文件夹中。

<head>
<meta charset="utf-8" />
<link href="style.css" rel="stylesheet"/>
<script src="respond.src.js"></script>
</head> 

如果我在这里做错了什么想法?

我只是添加一个iFrame。

<body>

    <iframe src="http://instagram.com/p/cR5BORA8Ij/embed/" width="300" height="400" frameborder="0" scrolling="no" allowtransparency="true" id="myFrame"></iframe>  

</body>

iFrame似乎没有在IE 8中加载。

1 个答案:

答案 0 :(得分:0)

请参阅此链接:

https://github.com/scottjehl/Respond

引用:

据报道,如果CSS文件使用字节顺序标记(BOM)以UTF-8编码,则它们将无法与IE7或IE8中的Respond.js一起使用。问题#97