jQuery UI叠加没有显示?

sat*_*sat 2 jquery jquery-ui

所有.我正在尝试使用叠加层来处理我的模态框.

如何创建工作叠加层?

我正在使用jQuery UI,并让它与叠加层分开工作.

以下是调用模块的代码:

function showDialog(){
    $("#example").dialog();
    return false;   
}

$(window).resize(function() {
    $("#example").dialog("center", "center", "center");
});
Run Code Online (Sandbox Code Playgroud)

如何调用叠加层?

如果单击以下网址中的链接显示对话框:

http://satbulsara.com/NSJ-LOCAL-02-06/eqs1.htm

谢谢,

星期六

And*_*ker 7

要创建一个对话框模态,您所要做的就是truemodal选项指定:

function showDialog(){
    $("#example").dialog({
        modal: true // Make the dialog "modal" (show an overlay beneath the dialog)
    });
    return false;   
}
Run Code Online (Sandbox Code Playgroud)

是jQueryUI网站上的一个例子.