开发者

What is renowned as being the best IE PNG fix at the moment?

I've tried jquery.pngFix.js and pngfix.js and neither seem to cater for all issues.

Any im开发者_JS百科ages that are anchored end up distorted with the former and the latter doesn't like positioned/repeating background images.

Unfortunately the design I'm working on calls for PNGs to be used in the way I have done, so I'm not really sure where to go from here?


google for DD_belatedPNG - this is the best one I have seen


You can check out this site for a decent fix:

http://www.greyhats.com/tech/a-better-ie6-png-fix-37

I have used that successfully, with some caveats. You can't make the image tile, which is a deal-breaker for some uses.


The ways I deal with transparent pngs and IE6 are:

  • Make the transparent color of the png the background color of your site. Works best for things like rounded corners, drop shadows and elements that overlay the background only.

  • If the background is a gradient or image, replace the png with a gif in your IE6 stylesheet. This is very easy if you are using sprites for background images. The rounded corners may not be as smooth in IE6 as other browsers but I consider that an acceptable trade off.

  • If I really need a javascript solution, I use DD_belatedPNG

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜