Jquery solves the problem of PNG Image background transparency in IE6

Source: Internet
Author: User
Tags transparent image

Original article go to: http://www.itivy.com/ivy/archive/2011/2/19/634337550187186848.html

IE6 has many problems. One of the problems is that the background of a PNG image cannot be transparent. Instead, it is replaced by a color block. Sometimes we want to use a PNG transparent image as a small icon, this is a tangle in IE6. Next we will use a jquery plug-in to solve this problem, hoping to help you.

  1. First download supersleight for jqueryand then download a transparent GIF image transparent.gif.
  2. Reference script:
    <SCRIPT type = "text/JavaScript" src = "/scripts/jquery-1.4.1.min.js"> </SCRIPT> <SCRIPT type = "text/JavaScript" src = "/scripts/jquery. supersleight. JS "> </SCRIPT> <SCRIPT type =" text/JavaScript "> $ (document ). ready (function () {$ ('body '). supersleight ({Shim: '/scripts/transparent.gif'}) ;}); </SCRIPT>

Download the demo here

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.