日期:2014-05-17  浏览次数:22743 次

safari如何将页面上的div,input控件移动到动态生成的iframe里面
safari如何将页面上的div,input等控件移动到动态生成的iframe里面


------解决方案--------------------
<script>
document.getElementById("i1").contentWindow.document.body.appendChild(document.getElementById("div2"));
</script>

safari这么写试试
document.getElementById("i1").contentWindow.document.documentElement.appendChild(document.getElementById("div2"));