我试图让respond.js使用他们的CDN/X域指令,但还不够。在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>发布于 2014-02-07 13:54:20
这就是我如何让它工作,远程指的是一个远程url和本地的一个本地资产。在调用respond.js之前,一定要链接到样式表。
<!--[if lt IE 9]>
<script src='//remote/respond.min.js'></script>
<link href="//remote/respond-proxy.html" id="respond-proxy" rel="respond-proxy" />
<link href="/local/respond.proxy.gif" id="respond-redirect" rel="respond-redirect" />
<script src="/local/respond.proxy.js"></script>
<![endif]-->https://stackoverflow.com/questions/14738247
复制相似问题