showModalDialog FRAMESET IE9/10下访问,窗口很小

showModalDialog FRAMESET IE9/10下访问,窗口很小。


	function openSelector(url,iWidth,iHeight){ 
	    var iTop = 0;
        var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;
		   window.showModalDialog(url,window,"dialogWidth:"+iWidth+"px;dialogHeight:"+iHeight+"px;dialogTop:"+iTop+"px;dialogLeft:"+iLeft+"px;edge: Raised; center: Yes; help: No; resizable: Yes; status: No;");	
	}



<FRAMESET id=framelayou frameSpacing=0 border=1 cols=* frameBorder=no rows=30,*,30>
	<FRAME src="organize-customer-top.fhtm" name=frametop scrolling=no>
		<FRAMESET id=content frameSpacing=0 border=1 cols=180,* frameBorder=no rows=*>
			<FRAME src="organize-customer-left.fhtm" name=frameleft>
			<FRAME src="../organize-customer!getlist.fhtm" name=framemain>
		</FRAMESET>	
	<FRAME src="organize-customer-bottom.fhtm" frameBorder=NO name=framebottom scrolling=no>
</FRAMESET>



这样弹出来的窗口,IE9下显示很小。

搜索出来的解决方案

在frameset的页面的添加以下内容:
<meta http-equiv="x-ua-compatible" content="IE=8">

如果没有效果的话,就改成IE=7
<meta http-equiv="x-ua-compatible" content="IE=7">

最终结果:
<head>
<meta http-equiv="x-ua-compatible" content="IE=8">
<title></title>
</head>

<FRAMESET id=framelayou frameSpacing=0 border=1 cols=* frameBorder=no rows=30,*,30>
	<FRAME src="organize-customer-top.fhtm" name=frametop scrolling=no>
		<FRAMESET id=content frameSpacing=0 border=1 cols=180,* frameBorder=no rows=*>
			<FRAME src="organize-customer-left.fhtm" name=frameleft>
			<FRAME src="../organize-customer!getlist.fhtm" name=framemain>
		</FRAMESET>	
	<FRAME src="organize-customer-bottom.fhtm" frameBorder=NO name=framebottom scrolling=no>
</FRAMESET>


你可能感兴趣的:(showModalDialog,ie9,IE10,FRAMESET)