Comment faire en sorte que IE5.5 / 6 prenne en charge la transparence alpha PNG?
IE5.5 and IE 6 are not support PNG alpha transparency. Lorsque nous mettons une image de fond de transparence PNG et que nous l'ouvrons avec IE5.5 ou 6, l'image s'affiche avec une vilaine couleur grise entourant comme suit
Il existe deux méthodes courantes pour prendre en charge la transparence alpha PNG IE5.5 / 6.
1) Microsoft.AlphaImageLoader
2) Twinhelix - iepngfix.htc
P.S IE7 and other browsers like opera and firefox have no trouble with PNGs alpha transparency support.
Microsoft.AlphaImageLoader
Utilisez la méthode «filter:progid:DXImageTransform.Microsoft.AlphaImageLoader» pour charger l'image PNG.
Twinhelix - iepngfix.htc
Visitezhttp://www.twinhelix.com/css/iepngfix/ et téléchargez le fichieriepngfix.zip. Extrayez-le et récupérez les fichiersiepngfix.htc etblank.gif.
P.S Both solution will prompt Active X security dialog if we open it locally. Veuillez cliquer sur autoriser le contenu bloqué pour voir l'effet. Cependant, il ne demandera pas d'avertissement de sécurité Active X si la page est hébergée sur le serveur Web.
Téléchargez le code source ici ->PNG alpha transparency Testing