Ie filter:alpha(opacity) black border

2019-07-31 11:17发布

问题:

Having an issue where filter: alpha(opacity) is adding black jaggys around the edge of my images.

Interestingly not around the image itself but around the edges of its transparency (it is a transparent PNG).

But this is also happening on text I have absolutly positioned.

Any help would be very appretiated!

It looks fine in other browsers, obviously not using filter:

Thanks.

回答1:

This man here has an explanation of the problem, as well as a workaround:

Blog post:

http://yordanstoev.com/blog/2009/05/22/png-transparency-plus-opacity-internet-explorer-8-bug/

Workaround:

http://yordanstoev.com/blog/showroom/ie8bug/working.html



回答2:

For anyone who ever finds this.

Result I eventually found on MSDN is it's possible using MS propreity CSS, but its completely impractical.