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

被刻印的时光 ゝ 提交于 2019-12-13 08:06:27

问题


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.



来源:https://stackoverflow.com/questions/2817849/is-there-any-png-fix-for-ie-6-and-without-modifying-current-html-css-and-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!