当前位置: 代码迷 >> Web前端 >> showModalDialog FRAMESET IE9上访问,窗口很小
  详细解决方案

showModalDialog FRAMESET IE9上访问,窗口很小

热度:1190   发布时间:2013-01-02 13:08:44.0
showModalDialog FRAMESET IE9下访问,窗口很小
showModalDialog FRAMESET IE9下访问,窗口很小。


	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">

最终结果:
<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>


  相关解决方案