I don't recall ever having a problem with transparent gifs in IE (any version).
First off try loading the image on its own - this will tell you if it's the image or some CSS rules going awry.
If it's still wrong, try re-saving it with a different program. The gimp will do.
Edit: It's at the CSS level so I'd check for which rules have the background colour that is appearing... hopefully it should be easy to find a likely candidate. Change the color to #ff0000 and check if the image changes as you expect. Then figure out why that rule shows on IE but not FF. If you have a URL for the page I could take a look.
发布评论
评论(4)
我不记得 IE(任何版本)中的透明 gif 遇到过问题。
首先尝试自行加载图像 - 这会告诉您是否是图像或某些 CSS 规则出了问题。
如果仍然错误,请尝试使用其他程序重新保存。 瘸子就可以了。
编辑:它处于CSS级别,所以我会检查哪些规则具有正在出现的背景颜色......希望应该很容易找到可能的候选者。 将颜色更改为 #ff0000 并检查图像是否按预期变化。 然后找出为什么该规则在 IE 上显示但在 FF 上不显示。 如果您有该页面的 URL,我可以看一下。
I don't recall ever having a problem with transparent gifs in IE (any version).
First off try loading the image on its own - this will tell you if it's the image or some CSS rules going awry.
If it's still wrong, try re-saving it with a different program. The gimp will do.
Edit: It's at the CSS level so I'd check for which rules have the background colour that is appearing... hopefully it should be easy to find a likely candidate. Change the color to #ff0000 and check if the image changes as you expect. Then figure out why that rule shows on IE but not FF. If you have a URL for the page I could take a look.
尝试这两个——弄乱数字,直到你得到正确的结果。 i 4get 适用于 IE,适用于 FF/chrome
Try these two -- mess with the numbers until you get it right. i 4get which is for IE and which is FF/chrome
我通过切换到 png 解决了 gif 透明度问题。 IE7 正确渲染 png Alpha 通道。
在 IE7 中打印透明 png 仍然无法正常工作。
I fixed a gif transparency problem by switching to png. IE7 renderes png alpha channels correctly.
Printing transparent pngs still does not work right in IE7.
这很奇怪——我在 CSS 文件中我认为被注释掉的语句中发现了问题:
它位于包含两个图像的元素中。
我对每个答案都投了赞成票。 谢谢!
This is weird -- I found the problem in what I thought was commented out statements in the CSS file:
which was in the element that contained both images.
I upvoted each answer. Thanks!