应该使用哪个jQuery插件来解决IE6 PNG透明性问题?

时间:2020-03-05 18:52:47  来源:igfitidea点击:

是否有jQuery团队正式开发的IE6 / PNG修复程序?

如果不是,我应该使用哪个可用插件?

解决方案

回答

看一下这个。有人在评论中也提到了jQuery插件。

从24种方式修复PNG

回答

我正在使用jquery.pngFix.js。我不知道它是否被正式批准,我确实知道它有效。我选择它是因为它是FancyBox附带的插件,没有其他原因。

回答

这个.htc pngfix一直对我有用,即使在jquery插件失败的情况下也是如此。

回答

我们好Guyz,这是我解决此问题的方法

从(http://jquery.andreaseberhard.de)下载jQuery-Plugin" pngFix"
很棒的插件!!!

-如下更改这些行:

// this line
jQuery(this).find("img[src$=.png]:visible").each(function() { 
// this line
jQuery(this).find(":visible").each(function(){
// and this line
jQuery(this).find("input[src$=.png]:visible").each(function() {

-在最后放置此代码

// Store a reference to the original method.
var _show = jQuery.fn.show;

// Overriding Show method.
jQuery.fn.show = function(){
  // Execute the original method.
  _show.apply( this, arguments );
  // Fix Png 
  return $(this).pngFix();
}

//No more problems with hidden images

})(jQuery);

//The End

回答

大家好,我只是想扔掉它,我在这里再找一遍,它在其余方面有一个特殊的优势:可重复的背景以及背景位置(这里标记为最佳答案的那个实际上只是在扩展背景图片)。

http://www.dillerdesign.com/experiment/DD_belatedPNG/

太好了只需将它放进去,然后忘了它就可以了。尚未看到它爆炸了一组CSS。