我只是看到当我加载 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 !');
}
});
“文档已加载!”消息也没有出现。
提前致谢,
德维扬
最佳答案
试试这个:
$(function(){
$.colorbox({
iframe: true,
innerWidth:425, innerHeight:344,
href : 'url',
title : 'Load PDF in IFRAME',
onComplete : function() {
alert('document loaded !');
}
});
});
关于jquery - 在 IE 中以 IFRAME 模式加载 PDF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12859812/