Solution to PNG opaque effect under IE browser

Source: Internet
Author: User
In the context of the use of png24, in IE can not achieve transparency, it is very confusing people, here is a perfect solution, is a foreign expert.

Support PNG-24 background loop support positioning support focus support hover support do background link normal support normal application zoom

Refer to Js,dd_belatedpng_0.0.8a-min.js For additional packaging: dd_belatedpng_0.0.8a-min

Then refer to the code in the page that uses PNG:

<script type= "Text/javascript" src= "JS path downloaded" ></script>

<script> dd_belatedpng.fix (' CSS selector, application type '); </script>

The reference function is Dd_belatedpng.fix (), and the CSS selector (which can be used with ID selector and class selector) and the application type (which is divided into IMG and background two) is filled in with PNG.

These can be abbreviated as Dd_belatedpng.fix (' #box-one,. Header, Img,background ');

More selectors such as Dd_belatedpng.fix (' #box-one,. Header, #footer,. Box-two a:hover, Img,background '); Wait a minute



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.