gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 12:55:53 25 4
gpt4 key购买 nike

我在我的网站上使用 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com