我想创建一个模式对话框只显示(某种或其它的HTML)内容:模态的对话中不会隐藏在页面加载
<script>
$.fx.speeds._default = 1000;
$(function() {
$("#dialog").dialog({
autoOpen: false,
closeOnEscape: true,
modal: true,
position: 'center',
width: 800,
height: 600,
show: "blind",
hide: "explode"
});
$("#opener").click(function() {
$("#dialog").dialog("open");
return false;
});
});
</script>
当我查看该页面,该对话框内联而不是隐藏。这是我的html:
<div id="dialog">This is my dialog that should be hidden until called</div>
<button id="opener">I Open the Dialog</button>
我做错了什么?
你是否按正确的顺序包含jQueryUI.js?它看起来好像根本不工作,所以也许你没有权限访问jQueryUI。 – orolo