主页面<html>
<head>
    <title></title>
    <script language="javascript" type="text/javascript">
        function OpenWin()
        {
           var getv = showModalDialog("b.html", "", "dialogWidth:1000px; dialogHeight:1000px;status:no;help:yes");
        }
</script>
</head>
<body>
    <form id="form1" runat="server" method="post">
    <input type="text" name="txtName" id="txtName" />
    <input type="text" name="txtAge" id="txtAge" />
    <input type="button" name="Submit" value="打开" onclick="OpenWin()" />
    </form>
</body>
</html>模式窗口子页面
<html>
<head>
</head>
<body>
    姓名:<input name="txtName" type="text" id="txtName" /><br />
    年龄:<input name="txtAge" type="text" id="txtAge" />
    <table width="100%" height:287px border="0px" cellspacing="0" cellpadding="0" >
     <tr>
     <td style="border:1px solid #C5C5C5; border-top:0;">
     <IFRAME class="HtmlEditor" ID="HtmlEditor" name="HtmlEditor" style=" height:286px;width:100%" frameBorder="0" marginHeight=0 marginWidth=0 src="editor/blankpage.htm"></IFRAME>
     </td>
     </tr>
    </table>
</body>
</html>在子页面中我的<IFRAME class="HtmlEditor" ID="HtmlEditor" name="HtmlEditor" style=" height:286px;width:100%" frameBorder="0" marginHeight=0 marginWidth=0 src="editor/blankpage.htm"></IFRAME>光标无法放上去,这是为什么呢???

解决方案 »

  1.   

    用 <%@ include file="editor/blankpage.htm"%> 试试吧
      

  2.   

    我这个地方是想弹出一个文本编辑器,但是文本编辑器里用到了<IFRAME class="HtmlEditor" ID="HtmlEditor" name="HtmlEditor" style=" height:286px;width:100%" frameBorder="0" marginHeight=0 marginWidth=0 src="editor/blankpage.htm"></IFRAME>这一句,但是在弹出的模式窗口中这个IFRAME是无法操作的
      

  3.   

    在你editor/blankpage.htm中添加div,div属性contentEditable设置为true即可.例如:<div id="editContent" contentEditable="true">文字编辑区</div>