我有一個ul鏈接到圖像和swf文件(橫幅)。點擊鏈接後,Fancybox打開覆蓋圖並顯示圖像/ swf文件。使用Fancybox打開SWF文件時動態更改尺寸
問題是無論swf文件的尺寸如何,Fancybox總是顯示約580 * 390的覆蓋圖。這當然會給swf文件帶來扭曲的視圖。
我一直在擺弄自動縮放和這樣的,沒有結果...... :-(
這是我的代碼:
$("a.fancybox").attr('rel', 'gallery').fancybox({
'transitionIn' : 'none',
'transitionOut' : 'none',
'titlePosition' : 'inside',
'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {
return '<span id="fancybox-title-inside">' + (currentIndex + 1) + '/' + currentArray.length + (title.length ? ' ' + title : '') + '</span>';
}
});
是否有任何方式的fancybox可以檢測的尺寸swf文件,並確定覆蓋層的尺寸作爲結果?
請注意,我沒有在數據庫中的SWF文件的尺寸或其他 也請注意,圖像和瑞士法郎總是混合在隨機
焦急等待您的回覆!
問候,
中號
謝謝,但這些設置不起作用。我的覆蓋保持與上述相同的尺寸。 – maartenmachiels