PNG transparency issue - faded images with black shadows - border in IE

佐手、 提交于 2019-12-10 10:24:42

问题


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?


回答1:


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.)

Or do like in my comment above.



来源:https://stackoverflow.com/questions/10514154/png-transparency-issue-faded-images-with-black-shadows-border-in-ie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!