我有一个项目,我希望在相对于其他页面元素的特定位置打开一个表单。我还想在表单打开时阻止非表单页面项目。我玩过blockUI,但似乎我只能相对于浏览器窗口定位非阻塞的DIV。这对模态很好,但不适合我的情况。
让我看看我是否可以举例说明。假设我有一些代码,例如:
<div style="position:relative; height:400px; width:600px;">
<p>This content should be blocked, as well as anything not in the next div</p>
<div id="non-blocked-content" style="position:absolute; top:40px; left: 200px; width:300px; height:200px;">
<form>
<label>This should not be blocked</label>
<input type="text" name="name">
</form>
</div>
</div>
我希望表单出现并且可用,但应该阻止页面的其余内容。有谁知道一个 javascript(最好是 jQuery)包来解决这个问题?
谢谢!- 布雷特