[英]PNG transparency issue - faded images with black shadows - border in IE
I used image rotator for displaying a few images on the homepage. 我使用图像旋转器在主页上显示一些图像。 All image are in the PNG format.
所有图像均为PNG格式。 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...
问题出在IE浏览器中(7,8) - 图像旁边有黑色阴影......我花了几个小时修复这个问题,但仍然不知道,问题在哪里以及如何删除它...
Didn't anyone has a similar issue and a tip, how fix that? 没有人有类似的问题和提示,如何解决这个问题?
try with : 尝试:
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 */
}
Or use a PNG8 (it will create a small white border around your images but I think you dont want that.) 或者使用PNG8(它会在你的图像周围创建一个小的白色边框,但我认为你不需要它。)
Or do like in my comment above. 或者在上面的评论中做。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.