IE10下,showModalDialog一个frameset型的页面,dialogHeight、dialogWidth不起作用
bhguo 2012-11-22 09:07:34 大家好:
我的应用程序需要showModalDialog弹出一个模式窗口,大小约800*600,用于新增、修改业务数据等,在ie以前版本、firefox、safari、chrome下都运行良好;今采用win7下的ie10测试,发现弹出的模式窗口很小,只有250*150大小的样子,dialogHeight、dialogWidth参数根本不起作用。
此结构已在整个系统广泛使用,目前不打算改动,帮我看看怎么回事,谢谢!
为了说明问题,各页面简化如下:
1、页面list.htm,在此页面调用showModalDialog,弹出页面frame.htm
<HTML>
<HEAD>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function AddRecord()
{
window.showModalDialog("frame.htm","","dialogHeight:600px;dialogWidth:800px;");
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<input type="button" id="btnAdd" value="Add Record" LANGUAGE="javascript" onclick="return AddRecord()">
</BODY>
</HTML>
2、页面frame.htm,包含2个页面1.htm 2.htm
<html>
<head>
<title>AppTitle</title>
</head>
<frameset rows="90,*" frameborder="1">
<frame scrolling="auto" src="1.htm">
<frame scrolling="auto" src="2.htm">
</frameset>
</html>
3、页面1.htm
<HTML>
<BODY>
This is page1
</BODY>
</HTML>
4、页面2.htm
<HTML>
<BODY>
This is page2
</BODY>
</HTML>