所有.我正在尝试使用叠加层来处理我的模态框.
如何创建工作叠加层?
我正在使用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
谢谢,
星期六
要创建一个对话框模态,您所要做的就是true为modal选项指定:
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网站上的一个例子.
| 归档时间: |
|
| 查看次数: |
2706 次 |
| 最近记录: |