IE5.5 / 6がPNGアルファ透明度をサポートするようにする方法は?
IE5.5 and IE 6 are not support PNG alpha transparency. PNGの透明な背景画像を配置し、IE5.5または6で開くと、画像は次のようにsurroundingい灰色で表示されます。
IE5.5 / 6 PNGアルファ透明度をサポートする一般的な方法は2つあります。
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
「filter:progid:DXImageTransform.Microsoft.AlphaImageLoader」メソッドを使用して、PNG画像をロードします。
Twinhelix – iepngfix.htc
http://www.twinhelix.com/css/iepngfix/にアクセスし、iepngfix.zipファイルをダウンロードします。 それを抽出し、iepngfix.htcファイルとblank.gifファイルを取得します。
P.S Both solution will prompt Active X security dialog if we open it locally. ブロックされたコンテンツを許可をクリックして、効果を確認してください。 ただし、ページがWebサーバーでホストされている場合、Activexセキュリティ警告は表示されません。
ここからソースコードをダウンロード–>PNG alpha transparency Testing