1
myIFrame = new IFrame({
id: 'iframe_content',
src: '/iframe_src/'
});
console.dir(myIFrame);
var n = new Element('div', {
style: {
'width': '100px',
'height': "100px",
'border': '1px solid red'
}
});
myIFrame.inject(document.body);
console.log("innerhtml", myIFrame.contentDocument.body.innerHTML);
console.dir(myIFrame.contentDocument.body);
n.inject(myIFrame.contentDocument.body);
div가 iframe에 삽입되지 않고 Ifrane의 요소에 액세스 할 수 없습니다. mootools 1.4.0 또는 MooTools 1.2에서 어떻게 할 수 있습니까?mootools에서 Iframe 콘텐츠 요소에 액세스하려면 어떻게해야합니까?