0

当我第一次打开 jquery 对话框时,它是居中对齐的,当我关闭它并再次打开它时,它会转到左上角。我的要求是我应该始终居中对齐。

$("<div></div>")
.dialog({ modal: false,title:" @CultureAPI.GlobalizeString("ClaimsAuditAdmin","STATIC_POPUP_TITLE")"
})
.load("/ClaimsAuditAdmin/ClaimAuditAdmin/OpenCreateNewSetDialog");
4

1 回答 1

0

尝试这个

$("<div></div>")
.dialog({ 
    modal: false,
    title: "@CultureAPI.GlobalizeString("ClaimsAuditAdmin","STATIC_POPUP_TITLE")",
    my: "center",
    at: "center",
    of: window
})
.load("/ClaimsAuditAdmin/ClaimAuditAdmin/OpenCreateNewSetDialog");
于 2013-06-10T07:12:54.690 回答