How to use DD_belatedPNG to make IE6 support PNG transparent images
How to use DD_belatedPNG to make IE6 support PNG transparent images?
Use DD_belatedPNG to make IE6 support PNG transparent images
Recommended learning: 梦Weavercms
As we all know, IE6 does not support transparent PNG images. In terms of expressiveness in Web design, PNG images have effects that other graphic formats cannot achieve. This fatal flaw of IE6 greatly limits the creative expression of Web design.
Although there are many ways to solve the problem of transparent PNG in IE6, from using IE-specific filters or e-xpression to javascript transparent GIF replacement. However, these methods have a disadvantage, that is, they do not support CSS. background-position and background-repeat attributes.
The use of DD_belatedPNG.js can perfectly solve the problem of PNG image transparency under IE6, and supports background-position and background-repeat. This is not available in other methods. At the same time, DD_belatedPNG also supports the a:hover attribute. and .
Our website has added DD_belatedPNG to process navigation PNG transparent images so that it maintains the same appearance under different browsers.
Usage:
First download the JS file
http://www.028guzheng.com/793395_16370305896/DD_belatedPNG_0.0.8a.js
and then quote the code on the page:
<!--[if IE 6]> <script type="text/javascript" src="js/DD_belatedPNG_0.0.8a-min.js"></script> <script> DD_belatedPNG.fix('css选择器,应用类型'); </script> <![endif]-->
The reference function is DD_belatedPNG.fix(), brackets Fill in the CSS selector for applying PNG (ID selector and class selector can be used) and application type (divided into img and background).
Such as DD_belatedPNG.fix(‘#box-one, img’) or DD_belatedPNG.fix(‘.header, background’) etc.
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’); etc.
In addition, in order to solve the problem of background image flickering under IE6, you can add the following script to the page
<!–-[if IE 6]> <script type=”text/javascript”> // <![CDATA[ if((window.navigator.appName.toUpperCase().indexOf("MICROSOFT")>=0)&&(document.execCommand)) try{ document.execCommand("BackgroundImageCache", false, true); } catch(e){} // ]]> </script> <![endif]–->
The above is the detailed content of How to use DD_belatedPNG to make IE6 support PNG transparent images. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



How to Convert PNG to JPG on Windows 11 On Windows 10 and 11, you can use Microsoft's built-in Paint app to quickly convert image files. To convert a PNG image to JPG on Windows 11, use the following steps: Open File Explorer and navigate to the PNG image you want to convert. Right-click the image and select Open With > Draw from the menu. Your photo or image opens in the Paint app. Note the file size at the bottom of the screen. To convert a file from PNG to JPG, click File and select Save As > JPEG Image from the menu. When the file resource

Suppose you need to rename the extension of a file from one extension to another, say jpg to png. It's easy, of course! But what if you have multiple files whose extensions need to be changed? Or worse, what if these multiple files are also located in multiple folders and subfolders, within a single folder? Well, for a normal person, this can be a nightmare. But for a geek, absolutely not. The question now is, are you a geek? Well, with the help of Geek Page, you definitely are! In this article, we explain how to easily rename the extension of all files within a folder, including subfolders of your choice, from one extension to another through a batch script method. Notice:

png is a bitmap format that uses a lossless compression algorithm. The PNG format has three forms: 8-bit, 24-bit, and 32-bit. The 8-bit PNG supports two different transparent forms. The 24-bit PNG does not support transparency. The 32-bit PNG adds an 8-bit transparent channel to the 24-bit. Therefore, Can display 256 levels of transparency.

PNG is a common image file format, whose full name is "Portable Network Graphics". It is a lossless compression format designed to replace the JPEG and GIF formats commonly used in the past. The PNG format was created in 1995 by graphic designer Thomas Boutell and grew in popularity over the following years. The PNG format is characterized by supporting high-quality image compression while retaining image details and color information. Comparable to JPEG format

How to make a picture into a png: 1. Open the PS software; 2. Find the picture that needs to be processed and import it into the software; 3. Adjust the background color of the picture to white; 4. Select the "Magic Eraser" tool and click The background area on the picture that needs to be made transparent; 5. Click "File" - "Save As" in the menu bar, select "png" in the save format in the pop-up window, and export the picture in png format.

Compared with jpeg and png, the png format is clearer; because the png format is a lossless format, while the jpeg format is lossy compression, which will reduce the quality of the original image data; therefore, if you use files produced by drawing software, save When you choose to save the png format, it will be clearer than the jpeg format.

PNG is a common image file format. It is a lossless compression format, which means that it does not lose image quality. PNG stands for Portable Network Graphics. The PNG file format was originally created by a group of developers in 1996 and was intended to replace some limited and inefficient file formats such as GIF. The PNG file format is based on a lossless compression algorithm and utilizes indexes, palettes, and grayscale images to store image data. Compared to other image formats, PN

Is the vector image png or jpg? In the field of image processing, we often hear the terms vector graphics and bitmaps. They represent two different image representation methods, with their own characteristics and uses. Among these two representation methods, generally speaking, vector images are often saved in SVG, AI, EPS and other file formats, while bitmaps are often saved in png, jpg, bmp and other formats. So to answer the question in the title, vector images can be png or jpg, but they can also be in other formats. The difference between vector graphics and bitmaps is their
