IE 无法正确渲染 png 背景图像

发布于 2024-11-12 06:01:57 字数 259 浏览 3 评论 0原文

我创建了一个 PNG 箭头图形,用于客户的网站。除了 IE 6、7、8 和 9 之外,它在任何地方都可以完美渲染。我已附上一张图像供您检查,并且已经尝试了 2 个不同的 IE png 修复脚本 - 一个是 jquery,另一个是 css 行为 .htc 文件。 请帮助我。 谢谢 杰米

图片:http://i51.tinypic.com/2w1uzqe.jpg

I have create a PNG arrow graphic for use in a client's website. It render's perfectly everywhere except in IE 6,7,8 and 9. I have attached an image for you to examine and have already tried 2 different IE png fix scripts - one jquery and one a css behaviour .htc file.
Please assist me.
Thanks
Jamie

Image: http://i51.tinypic.com/2w1uzqe.jpg

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

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

发布评论

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

评论(2

慕烟庭风 2024-11-19 06:01:57

很遗憾地说,5 年来我一直在寻找 100% 有效的破解 IE 中 png 透明度错误的方法,但没有结果。它们有很多,但通常它们都不能到处工作。

尝试使用透明 gif 代替或裁剪带有背景的箭头图像。它将需要更多的白色字节,因此不会对您的性能造成太大影响。

Sorry to say that but for 5 years i've been looking for 100% working hack for png transparency bug in IE's with no result. There are many of them and usually each of them doesn't work here and there.

Try using transparent gif instead or crop arrow image with background along. It will take few more bytes of White color so won't damage your performance that much.

青巷忧颜 2024-11-19 06:01:57

IE PNG Fix 脚本旨在修复的错误仅是 IE6 及更低版本的问题.. 嗯.. 可能是 IE7?我忘记了。无论如何,IE8 解决了这个问题,而 IE9 绝对 不应该有这个问题。这些 IE 版本可能仍然存在大量错误,但众所周知的旧 PNG 背景问题并不是其中之一。

我的猜测是 PNG 文件本身可能已损坏。

我的建议是尝试将 PNG 图像加载到 Photoshop(或您最喜欢的图形应用程序)中,然后重新保存。这可能就是解决问题所需要做的全部事情。

如果做不到这一点,您能否给我们一个实际 PNG 文件的链接,以便我们也可以看看?

The bug that IE PNG Fix scripts are designed to fix is only a problem for IE6 and lower.. hmm.. possibly IE7? I forget. In any case, IE8 fixed the issue, and IE9 definitely shouldn't have it. These IE versions may still have plenty of bugs, but the old well known PNG background issue isn't one of them.

My guess is that there may be a corruption in the PNG file itself.

My suggestion is to try loading the PNG image into Photoshop (or your favourite graphics app), and re-save it. That may be all you need to do to solve the issue.

Failing that, would you be able to give us a link to the actual PNG file, so we can have a look as well?

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