0
이 문제는 Firefox에서 작동하지만 Chrome에서는 'Uncaught TypeError : null'오류 'on'속성의 'css'속성을 읽을 수 없습니다. onDialogOpen() {this.iframe.css ({ "모달 창 안의 iFrame이 Chrome에서 작동하지 않습니다
function show(options) {
// create our temporary iframe
this.iframe = $('<iframe name="' + (this.id = 'emh_' + +new Date) + '">')
.load($.proxy(onIframeLoad, this));
// show our dialog
this.iframe.dialog($.extend(true, {
title: 'Entity Viewer',
modal: true,
draggable: false,
resizable: false,
width: 800,
height: 500,
buttons: {
'Save & Continue': $.proxy(submitIframeForm, this)
},
open: $.proxy(onDialogOpen, this),
close: $.proxy(onDialogClose, this)
}, options));
alert(options.path);
// since our dialog is showing now, let's update the src of the iframe
this.iframe.attr('src', options.path + '?modal=true&unique=' + this.id);
}
function onDialogOpen() {
this.iframe
.css({
width: '100%',
padding: 0,
border: 0,
margin: 0
});
}
SilentTremor 귀하의 의견 주셔서 감사하지만 불행히도 난 여전히 http://jsfiddle.net/pkxjmv9q/1/에게 코드에서 몇 가지 수정 –
같은 오류가 점점 오전 : p가 작동합니다 지금 당장. – SilentTremor