寻找JS / JQuery完全模态叠加 [英] Looking for JS/JQuery FULLY modal overlay

查看:82
本文介绍了寻找JS / JQuery完全模态叠加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个模式叠加层来阻止与页面其余部分的交互,并且不会被用户关闭,但似乎无法找到一个不需要覆盖现有功能的模式(如移除X按钮或删除esc-to-close功能)。



任何人都知道一个JQuery插件或其他JS库可以做到这一点吗?更小更简单更好... ...

实际上,写下自己很简单(用100%透明的div覆盖整个页面),但它很难完美(如果用户调整了窗口的大小,怎么样?)。所以理想情况下我会使用一个插件,但是我讨厌配置插件以满足我的需求,因为它们对我来说似乎并不完美!

解决方案

http://developer.yahoo.com/yui/examples/container /panel-loading.html



幸运的是我已经使用了YUI,只是忽略了这一点。正是我想要的。


I need a modal overlay that will block interaction with the rest of the page and is NOT CLOSABLE by the user, but can't seem to find one where I don't have to override existing functionality (like removing the X button or removing the esc-to-close feature).

Anyone know of a JQuery plugin or other JS library that can do this? Smaller + simpler is better...

Actually this is fairly straightforward to write myself (cover the entire page with a 100% transparent div), but it is harder to perfect (What if the user resizes the window? What about tabbing?). So ideally I'd use a plugin but I hate configuring plugins for my needs, since they seem to be never perfect for me!

解决方案

http://developer.yahoo.com/yui/examples/container/panel-loading.html

Luckily I'm using YUI already, just overlooked this. Exactly what I want.

这篇关于寻找JS / JQuery完全模态叠加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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