Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report