1, to solve the directly with the IMG tag PNG image display
The code is as follows
Copy Code
$ (document.body). Fixpng ({scope: ' img '});
All PNG pictures in the body can be displayed as transparent.
2, to
Allows ie6 to support png transparent images, ie6png Images
A common problem is that ie6 does not support transparent png images. But in fact ie6 only does not support the png-24 format of transparent background images, but the transparent
Saturday to participate in the Webtech Eighth Web Exchange, about picture optimization, actually involves a PNG image instead of GIF, but in the Web page can not achieve transparency effect.
Look at the pictures of Taobao, in fact, are PNG. The
FF and IE7 have directly supported the transparent PNG map, and the next one is mainly to solve the IE6 transparent PNG picture with a gray bottom
Copy Code code as follows:
Style=
1. png Picture type
The PNG format has 8-bit, 24-bit, 32-bit three, and the following are some of the terms:
Index transparency: Similar to GIF, a pixel is only full and opaque two effects alpha transparent: Translucent PNG8
8-bit PNG supports up
Although have let IE6 support PNG transparent background of JS program, is not very convenient, or with CSS to achieve good. Use is: ie5.5+ 's AlphaImageLoader filter.
1.png Background Transparent
Solution:
Copy Code code as follows:
format and transparency of PNG
This fireworks will be clearer, open the FIREWORKD optimization panel, and you can clearly see that PNG has 3 different depth formats: PNG8, PNG24, PNG32.
Figure 01
Where you select PNG8 in the
Format and transparency of PNG
This fireworks will be clearer, open the FIREWORKD optimization panel, and you can clearly see that PNG has 3 different depth formats: Png8, Png24, png32.
Where you select Png8 in the Optimization panel,
Background Images | Transparent PNG images play a very important role in web design, using the features of PNG images to produce practical, gorgeous results, but the support for PNG images is not ideal, Firefox and opera support PNG better,
There are many different types of image formats, the most common on the Internet are JPEG, GIF, BMP, TIFF, and PNG. Each image format has its own purpose, such as GIF is used for animation, JPEG is used for high-definition pictures, this image will
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.