In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Today Xiaobian to share with you how to solve the IE6 png picture transparency related knowledge points, detailed content, clear logic, I believe most people are still too familiar with this knowledge, so share this article for everyone to refer to, I hope you read this article after some harvest, let's learn about it together.
I. JS file support is required
1. Requirements DD_belatedPNG_0.0.8a.js and DD_belatedPNG_0.0.8a.js files, above we will provide packaged downloads
2. It is important to introduce these two JS files in the png image html page (two JS files we put into the JS folder for example)
Because it is for IE6, other higher versions of browsers do not need to apply this special effect, so we apply the annotated if premise to let IE6 read JS files, the code is as follows:
The above code is for ie6 html comments, ie6 will read the code in the comments that synthesize the above if conditions. This allows IE6 to introduce the necessary JS files and code. The above code can be placed between html pages.
Second, important in the use of PNG image page declaration class
We introduced JS, and at the same time we arrived at the code:
DD_belatedPNG.fix(' ');
1, we use png in the css background attribute transparent picture delusion if we are on ".CSS5{...} "Use png image in", at this moment we just need to make the following class declaration in parentheses in "DD_belatedPNG.fix ('');", the corresponding code:
DD_belatedPNG.fix('.CSS5 ');
2, we use the img tag in html to apply png colorless image intent assume that we apply img in the.CSS5 box to introduce png image scheme code:
DD_belatedPNG.fix('.CSS5 img');
Synthesizing the above 2 points, both situations encounter the moment, code:
DD_belatedPNG.fix('.CSS5 img,.CSS5');
That is to say, in the echo name place can be applied to English lowercase comma annexation, and so on if encountered in an html page in multiple places to apply png whether CSS backing or html img tag, we may use commas to spread the combination declaration.
The above is "IE6 png picture transparent how to solve" all the content of this article, thank you for reading! I believe everyone has a great harvest after reading this article. Xiaobian will update different knowledge for everyone every day. If you want to learn more knowledge, please pay attention to the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.