ssl - AlphaImageLoader png hack 是否可以在 IE6 上使用 SSL?

标签 ssl internet-explorer-6 iepngfix

DXImageTransform.Microsoft.AlphaImageLoader 是否通过 SSL 工作?我一直试图让这个工作无济于事,但它在不安全的连接上工作正常。

我发现的所有 PNG hacks 都使用这种方法,搜索结果没有为我产生任何结果。

最佳答案

The Cause

Anytime you get the security error about some content not being secure, it is because something is being linked to that is coming from a non-HTTPS (insecure) connection. Tracking it down led us to see that it was some CSS tags that allow for PNG transparency in IE6 and IE7, using the CSS "filter" property and the "AlphaImageLoader" plugin. Here's the particular line of code:

filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/facebox/tr.png', sizingMethod='scale');

The Solution

So the solution is to use a full secure URL with "HTTPS://" to the png image. IE sees that AlphaImageLoader as a plugin. And all plugins in IE 6,7 are required to only reference cached images. The images cached are not HTTPS (or secure), and so the secure content error popup is shown when the AlphaImageLoader requests the images. So the following request worked correctly.

 filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src='https://www.livingroad.com/images/facebox/tr.png', sizingMethod='scale');

Oh, and don't try to use spaces in the URL for the AlphaImageLoader! This is another known bug in the plugin.

来自 AlphaImageLoader SSL support in IE6 and IE7

关于ssl - AlphaImageLoader png hack 是否可以在 IE6 上使用 SSL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2470857/

相关文章:

java - Maven:访问自签名存储库时出现 SunCertPathException

ssl - 如何强制 Axis 客户端使用 TLSv1.2 协议(protocol)

css - 在 CSS 中,iepngfix.htc 文件是否被调用一次,还是为每个元素重新读取?

android - 使用 SSL 时 HttpClient 和 HttpsURLConnection 返回不同的证书

php - XAMPP - SSL 证书。损坏的 HTTPS

html - 简单的导航栏在 IE6 中不起作用?

css - MSIE 6 中的最小宽度

asp.net - IE6 上的 ASP 按钮问题

internet-explorer - Logo 在 IE6 中无法正确显示>

javascript - IE6 中的网站因 "Unexpected call to method or property access"错误而中断