【发布时间】:2011-09-02 16:26:06
【问题描述】:
使用 jquery-ui 创建对话框非常简单:
<script>
$(function() {
$( "#dialog" ).dialog();
});
</script>
<div id="dialog" title="Basic dialog">
<p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
</div>
...但是仍然需要在 HTML 中添加一个 div 才能正常工作。在道场:
var dlg = new dijit.Dialog({
title:"dialog",
style: "width:30%;height:300px;"
});
dlg.show();
没有在 html 部分中指定任何内容就可以做到这一点,jquery-ui 可以做到这一点吗? (我必须在这里使用 jquery-ui) 谢谢,
大卫
【问题讨论】: