jQuery: The Write Less, Do More JavaScript Library

Re: jquery.ifixpng.js IE 7 Transparency is Black instead of transparent

by Guy Fraser-2 :: Rate this Message:

Reply to Author | View in Thread


cfdvlpr wrote:

> My IE 7 doesn't seem to support PNGs like yours does.
>
> How about in the head:
>
> <!--[if lt IE 7.0000]>
>    <script type="text/javascript" src="/jquery/plugins/
> jquery.ifixpng.js"></script>
> <![endif]-->
> <!--[if gte IE 7.0000]>
>    <script defer type="text/javascript" src="/javascript/pngfix.js"></
> script>
> <![endif]-->
>  

Why are you doing this:

<!--[if gte IE 7.0000]>
   <script defer type="text/javascript" src="/javascript/pngfix.js"></script>
<![endif]-->


IE7 natively supports PNG alpha transparency as background images and normal images. No need to do any png fixing in IE7 and any attempt to do so will probably make things worse.

 « Return to Thread: jquery.ifixpng.js IE 7 Transparency is Black instead of transparent

LightInTheBox - Buy quality products at wholesale price