Jquery ui 奇怪的jQueryUI对话框错误

Jquery ui 奇怪的jQueryUI对话框错误,jquery-ui,dialog,Jquery Ui,Dialog,我已经创建了这样的对话框 $('#add_error').click(function(e) { $('<div>') .load('/someaction/format/html/') .dialog({ title: 'Some title', modal: true, width: 385,

我已经创建了这样的对话框

$('#add_error').click(function(e) {
        $('<div>')
            .load('/someaction/format/html/')
            .dialog({
                title: 'Some title',
                modal: true,
                width: 385,
                close: function() {
                     $(this).remove();
                }
            });

        e.preventDefault();
    });

有什么想法吗?

我认为它必须以某种奇怪的方式连接到:ui小部件覆盖

我只是在我的页面中覆盖它,如下所示: .ui对话框标题栏{显示:无;} .ui小部件覆盖{背景:#8888888;不透明度:.15;过滤器:Alpha(不透明度=15);}

覆盖ui小部件覆盖的原因仅仅是因为 下面的方法不起作用
.ui对话框覆盖{背景:#8888888;不透明度:.15;过滤器:Alpha(不透明度=15);}

自1.8rc3以来,这已在主干中修复。请参见

使用jQuery UI 1.8的所有功能

您正在运行哪些版本的jQuery/jQuery UI?
var $el = (this.oldInstances.length ? this.oldInstances.splice(0, 1)[0] : $('<div></div>').addClass('ui-widget-overlay'))
                .appendTo(document.body)
                .css({
                    width: this.width(),
                    height: this.height()
                });
close: function() {
                     $(this).remove();
                }