最小化屏幕时如何设置合适的高度,宽度 [英] how to set proper height,width when minimized the screen

查看:142
本文介绍了最小化屏幕时如何设置合适的高度,宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个页面正在使用此代码显示弹出窗口.

 var url = "  + appID;
          $ .colorbox({href:url,width:" ,高度:" ,iframe:true,escKey:true,overlayClose:false}); 



问题是,当我最大化IE浏览器并运行我的应用程序时,弹出窗口
显示为我想要的,但是当我最小化浏览器并运行该应用程序时,在弹出窗口中可见滚动条,该如何删除它.即使在最小化窗口中打开该应用程序,我也不希望弹出窗口可见. div class ="h2_lin">解决方案

.colorbox({href:url,宽度:" 55%",高度: 90%",iframe:true,escKey: true,overlayClose:false});



问题是,当我最大化IE浏览器并运行我的应用程序时,弹出窗口
显示为我想要的,但是当我最小化浏览器并运行该应用程序时,在弹出窗口中可见滚动条,该如何删除它.即使在最小化窗口中打开该应用程序,我也不希望弹出窗口可见. /blockquote>

窗口大小是否相同但具有滚动条?如果知道所需的大小,为什么不使用绝对大小?


Hi,
i have a page in which am showing a popup using this code.

var url = "MyPopUP.aspx?AppID=" + appID;
          $.colorbox({ href: url, width: "55%", height: "90%", iframe: true, escKey: true, overlayClose: false });



the problem is that when i maximize the IE browser and run my application,the popup
is shown as i want,but when i minimize the browser and run the application ,a scroll is visible in the popup ,how can i remove it.I dont want the popup to be visible even when i open the application in minimize window.

解决方案

.colorbox({ href: url, width: "55%", height: "90%", iframe: true, escKey: true, overlayClose: false });



the problem is that when i maximize the IE browser and run my application,the popup
is shown as i want,but when i minimize the browser and run the application ,a scroll is visible in the popup ,how can i remove it.I dont want the popup to be visible even when i open the application in minimize window.


Is the window the same size but has scrollbars ? Why not use an absolute size, if you know the size you want ?


这篇关于最小化屏幕时如何设置合适的高度,宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆