AlphaImageLoader png hack 可以在带有 SSL 的 IE6 上工作吗?

发布于 2024-08-25 06:00:25 字数 144 浏览 4 评论 0原文

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

我发现的所有 PNG hack 都使用这种方法,但搜索结果没有为我带来任何结果。

Does DXImageTransform.Microsoft.AlphaImageLoader work over SSL? I've been trying to no avail to get this to work, but it does work fine over an insecure connection.

All of the PNG hacks I've found use this method, and search results haven't yielded anything for me.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

策马西风 2024-09-01 06:00:25

原因

每当您遇到安全错误时
关于某些内容不安全,
这是因为有些东西正在
链接到的是来自
非 HTTPS(不安全)连接。
追踪它让我们发现它
是一些允许 PNG 的 CSS 标签
IE6 和 IE7 中的透明度,使用
CSS“过滤器”属性和
“AlphaImageLoader”插件。这是
特定代码行:

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

解决方案

所以解决方案是使用完整的
带有“HTTPS://”的安全 URL 到 png
图像。 IE看到AlphaImageLoader
作为插件。以及 IE 6,7 中的所有插件
只需要引用缓存的
图像。缓存的图像不是
HTTPS(或安全),因此安全
当出现内容错误弹出窗口时
AlphaImageLoader 请求图像。
所以以下请求有效
正确。

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

哦,不要尝试在中使用空格
AlphaImageLoader 的 URL!这
是插件中的另一个已知错误。

来自 AlphaImageLoader SSL 支持在 IE6 和 IE7 中

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.

From AlphaImageLoader SSL support in IE6 and IE7

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文