2

我只是看到当我加载 PDF 文件时,加载覆盖在 IE 中并没有消失......

$.extend($.colorbox.settings, {
    transition: "none",
    opacity: 0.6,
    iframe: false,
    fastIframe: false,
    returnFocus: true,
    escKey: false,      // do not close when ESC is pressed
    overlayClose: false,    // do not close when overlay is clicked
    initialWidth : 872,
    initialHeight : 465,
    innerWidth : 872,
    innerHeight : 465});

$.colorbox({
    iframe: true,
    data: null, 
    href : 'myPDFurl',
    title : 'Load PDF in IFRAME',
    onComplete : function() {
        alert('document loaded !');
    }
});

“文件已加载!” 消息也没有出现。

提前致谢,

德维扬

4

2 回答 2

3

尝试这个:

$(function(){
    $.colorbox({
        iframe: true,
        innerWidth:425, innerHeight:344,
        href : 'url',
        title : 'Load PDF in IFRAME',
        onComplete : function() {
            alert('document loaded !');
        }
    });
});

演示:http: //jsfiddle.net/EcqJP/

于 2012-10-12T13:37:05.437 回答
0

对我来说是这样的:

    $('.cboxPDF').css('outline','none').colorbox({iframe: true,
    innerWidth:'80%', innerHeight:'80%',
    title : 'Title od PDF',
    onComplete : function() {
        console.log('document loaded !')}
    });
于 2013-11-07T08:59:41.610 回答