all。我正试图在我的模态框上进行叠加。
如何创建工作覆盖?
我使用的是jQueryUI,并且已经使它能够在覆盖之外工作。
以下是调用模块的代码:
function showDialog(){
$("#example").dialog();
return false;
}
$(window).resize(function() {
$("#example").dialog("center", "center", "center");
});
如何调用覆盖?
如果您单击以下url中的"显示对话框"链接:
http://satbulsara.com/NSJ-LOCAL-02-06/eqs1.htm
谢谢,
Sat
要使对话框成为模态对话框,只需为modal
选项指定true
:
function showDialog(){
$("#example").dialog({
modal: true // Make the dialog "modal" (show an overlay beneath the dialog)
});
return false;
}
下面是jQueryUI网站上的一个例子。