2008-09-13 65 views

回答

4

我使用jquery.pngFix.js。我不知道它是否被正式批准,我知道它是有效的。我選擇它是因爲它是FancyBox附帶的插件,沒有其他原因。

2

看看這個。有些人在評論中也提到了jQuery插件。

PNG Fix from 24 Ways

+0

謝謝!我會把這個鏈接傳給我們的設計師。 – 2008-09-13 18:13:52

3

這個.htc pngfix一直爲我工作,即使在jquery插件失敗的情況下。

1

您好Guyz,這是我修復這個問題

下載jQuery的插件「pngFix」從(http://jquery.andreaseberhard.de) 的優秀插件的方式!

--change這些行像下面這樣:

// 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() { 

--Before年底將這段代碼放到

// 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 
0

嗨,只是想折騰這個1英寸我再次挖掘它,它有一個比其他的具體優勢:可重複的背景以及背景位置(標記爲最佳答案的實際上只是對背景進行縮放ound圖像)。

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

它是如此之大。只需將其放入並忘記它即可。還沒有看到它爆炸了一套CSS。