PNG透明度问题-带有黑色阴影的褪色图像-IE中的边框 [英] PNG transparency issue - faded images with black shadows - border in IE
本文介绍了PNG透明度问题-带有黑色阴影的褪色图像-IE中的边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用图像旋转器在首页上显示了一些图像.所有图像均为PNG格式.问题出在IE(7,8)中-图像旁边有黑色阴影...我花了几个小时来解决此问题,但仍然不知道问题出在哪里.如何将其删除...
I used image rotator for displaying a few images on the homepage. All image are in the PNG format. The problem is in IE (7, 8) - beside the image there is black shadow... I spent couple of hours with fixing this issue, but still don't know, where is the problem & how to remove it...
没有人有类似的问题和提示,如何解决?
Didn't anyone has a similar issue and a tip, how fix that?
推荐答案
尝试使用:
img.yourimg {
background: transparent;
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)"; /* IE8 */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF); /* IE6 & 7 */
}
或者使用PNG8(它会在图像周围创建一个小的白色边框,但我认为您不想要那样.)
Or use a PNG8 (it will create a small white border around your images but I think you dont want that.)
或者喜欢上面的评论.
这篇关于PNG透明度问题-带有黑色阴影的褪色图像-IE中的边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文