Is there any PNG-fix for IE 6 and without modifyin

2019-09-20 05:37发布

问题:

Is there any PNG-fix for IE 6 and without modifying current HTML, CSS and image name?

any javascript way.

I can add any thing in <head>........</head> but can't modify anythings inside <body>.....</body>.

in one shot i want to make transparent all png transparent.

回答1:

As I just learned, this script will make IE behave like a standards compliant browser, including PNG fixes.



回答2:

OK here's a question: if you can't modify the HTML, CSS or image at all, what the heck can you modify? The raw network stream coming from the server?



回答3:

My preferred PNGFix is DD_belatedPNG. It is easy to use, example from the page:

<!--[if IE 6]>
<script src="DD_belatedPNG.js"></script>
<script>
  /* EXAMPLE */
  DD_belatedPNG.fix('.png_bg');

  /* string argument can be any CSS selector */
  /* .png_bg example is unnecessary */
  /* change it to what suits you! */
</script>
<![endif]-->

You can set that .png_bg selector to whatever you see fit. Perhaps you want to replace all of the headings on a page: DD_belatedPNG.fix('h1,h2,h3');



回答4:

This can be fix in 2 way

  1. There is a fix file called png-fix.js, just get from net and include it before your </body> tag.

  2. Better you can change you png file format into png-8 format via the photo-shop tool.