如何在 mootools 中缩小它。
window.frames['buffer'].document.body.innerHTML
在 mootools 中,这不起作用:
$('buffer').$('body').get('html');
或者
$('buffer').get('html')
最佳答案
只要您的页面和 iframe 位于同一域中,您就应该能够使用以下内容:
new IFrame('buffer').contentDocument.getElement('body').get('html');
关于dom - 使用 $() 获取 iframe 内容(更新 : In mootools)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2444595/