【发布时间】:2013-02-06 20:32:37
【问题描述】:
我正在尝试让 respond.js 使用他们的 CDN/X-Domain 指令,但效果不佳。在 IE8 中仍然没有加载媒体查询。
我什至上传了示例cross-domain 文件夹来测试和调整文件的路径
在我的<head> 我有:
<link href="http://mywebsite.wpengine.netdna-cdn.com/respond-proxy.html" id="respond-proxy" rel="respond-proxy" />
<link href="http://mywebsite.com/respond.proxy.gif" id="respond-redirect" rel="respond-redirect" />
<script src="http://mywebsite.com/respond.proxy.js"></script>
- 我将在上述文件之前链接到 respond.js 本身
- 当 CDN 关闭时,媒体查询在 ie8 中工作
- IE8 没有输出错误
- 我使用 WPEngine 托管,他们已将 response-proxy.html 添加到 CDN 中。 - 我仔细检查了文件,它们都存在。
【问题讨论】:
-
如果你还没有看过,这个页面有我在respond.js + CDN上找到的最全面的信息:webdesign.web3.lu/mediaqueries_polyfill.html祝你好运!
标签: javascript internet-explorer-8 cross-domain media-queries