javascript中的动态弹出窗口

问题描述:

我想要弹出窗口,该窗口应该占用页面内容的大小。

i want pop up the window which should be take the size of content of the page.

除了所有缺少的信息,你可以放的方式通过javaScript在网页中弹出是创建所需大小的隐藏
Aside from all the missing information, the way you can put a "pop-up" in a web page via javaScript is to create a hidden
,并在适当时包括所需的控件。由于它已经是页面的一部分,而不是真正的弹出窗口,因此不会被阻止。



您使用DOM来改变其可见性隐藏'到'可见'(和返回)。

使用z-index属性强制它在顶部。



大小你的无论什么都可以通过javaScript获得,假设你知道如何识别它,或者,如果它是整个窗口,那就要求它。







of the desired size, and including the desired controls if appropriate. Since it's a already part of the page, and not a real pop-up window, it will not be blocked.

You use the DOM to change its visibility from 'hidden' to 'visible' (and back).
Use the z-index property to force it on top.

The size of your whatever can be gotten via javaScript, as well, assuming you know how to identify it, or, if it's the entire window, ask for that.