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的页面的添加以下内容:
[color=red]<meta http-equiv="x-ua-compatible" content="IE=8">[/color]

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

最终结果:

<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>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值