Perfect solution to the transparent display of the website PNG icon under IE6

Source: Internet
Author: User

Now IE6 although some backward, but many XP users are preferred IE6 browser, a classic long-term standard Fast browser will inevitably have loyal users, PNG icon IE6 under the default is not supported, can be achieved by JS code, the following from the skiff for everyone, code can be directly downloaded

First, download my compiled JS file upload to the website JS directory

Second, Insert the following code directly between the head in the Web page where you need to implement transparency

<!--[if IE 6]>

<script src= "Js/dd_belatedpng_0.0.8a.js" type= "Text/javascript" ></script>

<script type= "Text/javascript" >

Dd_belatedpng.fix (' #main,. In-v1-top,.in-v1-bot,.in-v1-cont,.in-v2-top,.in-v2-bot,h1.logo,ul#nav Li A,.copyRight, Img,background ');

</script>

<! [endif]-->

Perfect solution to the transparent display of the website PNG icon under IE6

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.