Get the App
SLTechnology News&Howtos  ›  Development  › 

How to make the background transparent in IE6 when png is used as the background of web page in CSS

Shulou Source: shulou.com Published: 2022-06-01 06:39:49 11月12日 Update

This article mainly introduces "how to achieve png in CSS as a background page in IE6 background transparency" related knowledge, Xiaobian through the actual case to show you the operation process, the operation method is simple and fast, practical, I hope this article "how to achieve png in CSS as a background page in IE6 background transparency" article can help you solve the problem.

same approach

1. Create a new JS file as above, named iepngfx.js, copy the above JS code into the JS file

2, Declare in HTML Just IE6 Read this new JS file iepngfx.js

Only IE6 is approved to read this JS file method:

3. Apply PNG image to CSS as background center and get the following CSS code:

#id{background:url(image path) ;_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled ='true ', sizingMethod ='scale', src='Picture Path');_bac kg round:none;}

In this way, you can imagine PNG images in HTML img as image icon settings can not be colorless or PNG images as web page backing background applications to achieve PNG image backing

About "how to achieve png in CSS as a background page in IE6 background transparency" content introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the industry information channel. Xiaobian will update different knowledge points for you every day.

Tags: Background picture web page file knowledge code method industry application different practical central content just need backing icon so practical practical set Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Shulou Technology vpn MariaDB MySQL