本文介绍了showmodalDialog();的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在我的项目中使用的是modalDialog,它是动态生成的,我想根据屏幕分辨率的不同将高度和宽度分别设置为80%(高度应比分辨率小80%,并且相同宽度).

但是,以像素为单位而不是以%为单位,请提出一些解决方案.

Hi all,

I''m using a modalDialog in my project which I''m generating dynamically and I want to set the height and width to 80% each depending on whatsoever the screen resolution is,(height should be 80% less than the resolution and same with the width).

However it''s taking both in pixel units instead of taking in % please suggest some solution.

Thanks in Advance.

推荐答案


这篇关于showmodalDialog();的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 04:59