我只是看到加载叠加层在加载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 !');
}
});
“加载了文档!”消息也不会出现。
提前致谢,
devyan
答案 0 :(得分:2)
试试这个:
$(function(){
$.colorbox({
iframe: true,
innerWidth:425, innerHeight:344,
href : 'url',
title : 'Load PDF in IFRAME',
onComplete : function() {
alert('document loaded !');
}
});
});
答案 1 :(得分:0)
对我来说,这是:
$('.cboxPDF').css('outline','none').colorbox({iframe: true,
innerWidth:'80%', innerHeight:'80%',
title : 'Title od PDF',
onComplete : function() {
console.log('document loaded !')}
});