dotnetmvc
这个的解决方法其实挺简单的。

只要在最外面的框架页面加个div,然后用parent.div的id就可以的。但是必须得弹出框得是一个页面。

<div id="div_info"></div>

 

 

//外层弹出框1
 function openFirstWin(url, title, width, height) {
 var strWidth;
 var strHeight;
 if (width == null)
 strWidth = 800;
 else
 strWidth = width;
 if (height == null)
 strHeight = 500;
 else
 strHeight = height;
 if (url != null) {
 //var content = \'<iframe name=\"first\" scrolling=\"auto\" frameborder=\"0\" src=\"\' + url + \'\" style=\"width:100%\;height:100%\;\"></iframe>\';
 var content = createIFrame(url);
 parent.$(\'#div_info\').window({
 close: false,
 modal: true,
 draggable: false,
 title: title,
 animate: true,
 content: content,
 minimizable: false,
 width: strWidth,
 height: strHeight,
 top: (parent.$(parent.window).height() - height) * 0.5,
 left: (parent.$(window).width() + 200 - strWidth) * 0.5
 });
 }
 return false;
 }

web技术分享

 

分类:

技术点:

相关文章:

  • 2022-02-08
  • 2021-07-19
  • 2021-11-12
  • 2021-09-20
  • 2022-12-23
  • 2021-08-06
  • 2021-12-03
猜你喜欢
  • 2021-09-20
  • 2022-01-19
  • 2021-11-03
  • 2022-12-23
  • 2021-06-29
相关资源
相似解决方案