IE 10 Beta - window.showModalDialog在打开包含framset的窗口时忽略dialogHeight和dialogWidth

时间:2012-10-17 06:55:23

标签: internet-explorer-10

注意:仅在IE 10 Beta版本中出现问题

方案: a.html有showModalDialog打开b.html:     window.showModalDialog(b.html, self, 'dialogHeight=800px;dialogWidth=900px');

b.html中有框架集:     <%@ Page Language="vb" AutoEventWireup="false" Codebehind="somefile.aspx.vb"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"> <HTML> <HEAD> Some Title </TITLE> </HEAD> <frameset rows="40px,*" border="0" frameSpacing="0" frameBorder="0"> <frame src="myfile.aspx" noresize height="100%" width="100%" scrolling="no"> </frameset> </HTML>

问题: 当我尝试使用a.html中的window.showModalDialog打开b.html时,弹出窗口显示在一个小窗口中,虽然我给了dialogHeight和dialogWidth。这只发生在IE10上。我正在使用测试版。请帮忙。

1 个答案:

答案 0 :(得分:3)

我已经能够通过在framesest页面中指定document compatibility mode来解决此问题:

<meta http-equiv="x-ua-compatible" content="IE=7" >