使div作为弹出窗口 [英] Making div as a popup

查看:106
本文介绍了使div作为弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

在运行时,我正在打开div.表示最初显示的div为none;
单击链接div后,显示属性更改为阻止",意味着用户可以看到它.

我的要求是,每当打开div时,我都希望限制文档的单击.

Hi all,

At run time I am opening the div. Means initially display of div is none;
after click on link div display property is changed to block means user is able to see it.

My requirement is whenever the div is opened, I want to restrict the document click.

推荐答案

您可以使用JQuery进行此操作.看看下面的链接.

http://www.queness.com/post/77/simple-jquery- modal-window-tutorial#login [ ^ ]
You can do this using JQuery. Have a look at below link.

http://www.queness.com/post/77/simple-jquery-modal-window-tutorial#login[^]


您可以使用RaisKazi建议的Jquery Modal Window实现此功能.

还有另一种方式来实现这种简单的JavaScript和CSS

看看 http://www.4guysfromrolla.com/webtech/100406-1.shtml [ ^ ].请参见第二个示例使用 FreezePane
You can achieve this functionality using Jquery Modal Window which RaisKazi suggested.

There is another way of doing this simple JavaScript and CSS

have a look on that http://www.4guysfromrolla.com/webtech/100406-1.shtml[^].See the second example "Freezing" the Page On Form Submission which is using FreezePane


这篇关于使div作为弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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