我正在使用 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 中加载。
最佳答案
引用这个链接:
https://github.com/scottjehl/Respond
它引用:
据报道,如果 CSS 文件以带有字节顺序标记 (BOM) 的 UTF-8 编码,它们将无法在 IE7 或 IE8 中与 Respond.js 一起使用。在问题 #97 中指出
关于html - 回复 CSS Not Working Properly,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17930047/