IE6 PNG transparency

前端 未结 12 2194
耶瑟儿~
耶瑟儿~ 2020-11-28 08:26

How can I fix PNG transparency bug in IE6 for background image?

12条回答
  •  感动是毒
    2020-11-28 08:51

    I like this Javascript solution writen by David Cilley some time ago. It gets out of the way of compliant browsers and can be used with any back-end you want. It does still require a blank gif image though.

    Add these functions to your HTML Header or other existing .js include:

    
    

    Put the following conditional comment at the bottom (footer section, just before ):

    
    

    For a more comprehensive approach to IE6 oddities, try the IE7 Javascript library.

提交回复
热议问题