2011-11-10 77 views
0

一直試圖浮動FB像按鈕iFrame在Flash內容,使用allowTransparency和在FF和Chrome中很好地工作,但在IE8中,iFrame仍然有白色背景,我使用
swfobject加載閃光燈 。製作Facebook Like按鈕iFrame背景在IE8中透明閃過

修復中的任何指針,非常感謝!

的iFrame & swfobject的來源:

 <iframe src="https://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fapps.facebook.com%MYAPP;send=false&amp;layout=button_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=dark&amp;font=verdana&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px; position: absolute; background-color:transparent; top: 50px; left: 623px ; z-index:1255; allowTransparency:true;" ></iframe> 


swfobject.embedSWF("my.swf", "mySWF", "753", "774", "10.0", "#000000", null, null, {name:"mySWF",wmode:"opaque"}); 

回答

0

如果我正確理解你的問題,其實我不認爲你被允許這樣做。如果你檢查Facebook的branding guidelines,它說按鈕使用類似,你不會修改圖像。

如果我誤解 - 你有一個實時的鏈接,你正試圖達到什麼目標,在FF和Chrome上工作?

+0

感謝您的回覆!恐怕我無法發佈實時鏈接,因爲客戶端/產品沒有推出,但是這裏是它在FireFox和IE8中顯示的屏幕截圖。 http://i871.photobucket.com/albums/ab277/Hofuzz/compare.jpg – Fuzz

1

您使用allowtransparency作爲樣式,但它需要是iframe的屬性。 <iframe allowtransparency="true"></iframe> 可能會有延遲,但一旦加載頁面,iframe的背景應該是透明的。