烦人的趋势 - 备用域上的样式表 - Firefox 问题
是我一个人还是有这样的网站:
http://www.infoq.com/news/2009/04/fubu- mvc
经常在没有样式的情况下加载,因为作者将样式表放在:
http://cdn1.infoq.com/styles/style.css
我知道这一点是现在处理 css、图像和 javascript 文件的流行方式。 但我似乎总是遇到这个问题。 这只是火狐浏览器的问题吗?
Is it just me or does a site like:
http://www.infoq.com/news/2009/04/fubu-mvc
often load without a style, because the author put the stylesheet over on:
http://cdn1.infoq.com/styles/style.css
I know this is all trendy way to do css, image and javascript files now. But I seem to bump into this issue all the time. Is it only a Firefox issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信这个问题是因为 Firefox 检查 crossdomain.xml 以查看请求是否被允许,而 IE 无论如何都会抓住它。
I believe the issue is because firefox checks for crossdomain.xml to see if the request is allowed, and IE just grabs it regardless.
我只是将源代码保存在本地并进行了测试。 似乎当样式没有出现时,LINK 元素解析为:
..重要的部分是“;jsessionid....”,它使 css 无法使用。
重新加载时,该 jsessionid 显然会因某种原因而起作用,并且 LINK 元素通常解析为:
我不确定实际上是什么导致 jsessionid 不起作用,然后重新加载......但这似乎是以某种方式成为罪魁祸首。 另外,我在 IE7 和 Safari 中也有过同样的经历……所以绝对不是浏览器特定的事情。
I just saved the source locally and tested it out. It seems that when the styles do not appear, the LINK element is resolving as:
..the important part being the ';jsessionid....' which is knocking the css out of commission.
On a reload, that jsessionid apparently kicks into action for some reason, and the LINK element resolves normally as:
I'm not sure what is actually causing the jsessionid to not work, then work on reload...but that seems to be the culprit in one way or another. Also, I had the same exact experience in IE7 and Safari...so definitely not a browser specific thing.