2015-09-22 14:14:06 3263次浏览 1条回答 0 悬赏 20 金钱

我想在父级页面获取iframe里面的iframe里的body内容,不知道怎么获取,请各位大神教我一下。
这是第二层iframe里面的代码:

<iframe id="ueditor_0" width="100%" height="100%" frameborder="0" src="javascript:void(function(){document.open();document.write("<!DOCTYPE html><html xmlns='http://www.w3.org/1999/xhtml' class='view' ><head><style type='text/css'>.view{padding:0;word-wrap:break-word;cursor:text;height:90%;} body{margin:8px;font-family:sans-serif;font-size:16px;}p{margin:5px 0;}</style><link rel='stylesheet' type='text/css' href='http://localhost/assets/efb97517/themes/iframe.css'/></head><body class='view' ></body><script type='text/javascript' id='_initialScript'>setTimeout(function(){editor = window.parent.UE.instants['ueditorInstant0'];editor._setup(document);},0);var _tmpScript = document.getElementById('_initialScript');_tmpScript.parentNode.removeChild(_tmpScript);</script></html>");document.close();}())">
<!DOCTYPE html>
<html class="view" xmlns="http://www.w3.org/1999/xhtml">
<head>
<body class="view" contenteditable="true" spellcheck="false" style="overflow-y: hidden; height: 300px;">
<p>因招标人招标计划有变,暂停第三标段:路灯工程招标工作。  联系方式     代理机构:运城市金明造价咨询有限公司     联 系 人:李先生     联系电话:18835918800</p>
</body>
</html>
</iframe>

着急用,请各位帮我看一下

您需要登录后才可以回答。登录 | 立即注册
辰枫夜雨
助理

辰枫夜雨

注册时间:2015-08-11
最后登录:2017-06-23
在线时长:18小时59分
  • 粉丝10
  • 金钱0
  • 威望0
  • 积分180

热门问题