当前位置: 代码迷 >> 跨浏览器开发 >> safari怎么将页面上的div,input控件移动到动态生成的iframe里面
  详细解决方案

safari怎么将页面上的div,input控件移动到动态生成的iframe里面

热度:4214   发布时间:2013-02-26 00:00:00.0
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"));
  相关解决方案