internet-explorer - 在 SSL 站点中托管 YUI - IE 错误

标签 internet-explorer ssl https yui

我在我的网站上使用 YUI。当您通过 HTTP 访问时,它工作正常,没有错误。然而,当 IE 用户通过 HTTPS 访问网站时,他们会得到可怕的 "this page contains secure and nonsecure items"。错误消息,这使得它几乎无法使用。

我正在托管 YUI 文件,因此它们通过 HTTPS 提供,但在 CSS 文件中,它仍然通过 HTTP 引用图像文件,这导致出现 IE 错误消息:

background:url(http://yui.yahooapis.com/2.7.0/build/assets/skins/sam/sprite.png)

有什么抑制这个错误的建议吗? CSS 中引用了大量 HTTP 链接。

最佳答案

If you wish to use hosted files, you can choose between Yahoo and Google Content Delivery Networks. Yahoo's network supports combo-handling; Google's supports SSL.

查看 YUI Dependency Configurator

选择 Google 作为您的 CDN 并将基本 url 更改为 https://

关于internet-explorer - 在 SSL 站点中托管 YUI - IE 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1600577/

相关文章:

css - 你能告诉我为什么我的 CSS 不能在 IE 7/8 中格式化吗?

html/css 表格在 IE 中被破坏

c# - 使用 HttpWebRequest 登录到 Https 网站后的 Htmlagilitypack?

android - 音频无法通过 HTTPS 在 chrome-android(LG G Pro 2 D838 上的 Kitkat 4.4.2)上播放

Javascript:Cookie、选择框和 'document.getElementById' 在 Internet Explorer 中不起作用

html - IE7 CSS z-index 问题在任何其他浏览器上都不明显

python - 如何为 SSL 配置 PyMySQL 连接?

amazon-web-services - 无法建立与负载平衡器的安全连接

python - Python Twisted SSL 的证书生成

debugging - 是否有类似 Fiddler for mac OS X 的 HTTP/HTTPS 拦截工具?