你知道为什么对话框关闭后文档中的按钮在Firefox 12中没有重新出现吗?
<html>
<head>
<link type="text/css" href="jqueryui/css/smoothness/jquery-ui-1.8.20.custom.css" rel="Stylesheet" />
<script type="text/javascript" src="jqueryui/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="jqueryui/js/jquery-ui-1.8.20.custom.min.js"></script>
<style></style>
<script type="text/javascript">
$(document).ready(function() {
$("#click").click(function() {
$("#dialog").attr("title", "save").text("This is the dialog box!").dialog({
buttons: {
"OK": function() {
$(this).dialog("close");
}
}
});
});
});
</script>
</head>
<body>
<div id="dialog" title="Basic dialog">
<input type="button" value="click" id="click" />
</div>
</body>
</html>