2

注意:问题仅出现在 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 上。我正在使用测试版。请帮忙。

4

1 回答 1

3

我已经能够通过在 frameest 页面中指定文档兼容模式来解决此问题:

<meta http-equiv="x-ua-compatible" content="IE=7" >
于 2012-12-03T16:22:35.190 回答