gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 13:30:01 24 4
gpt4 key购买 nike

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/

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