当我第一次打开jquery对话框时,它是居中对齐的,当我关闭它并再次打开它时,它会转到左上角。我的要求是我应该始终居中对齐。
$("<div></div>")
.dialog({ modal: false,title:" @CultureAPI.GlobalizeString("ClaimsAuditAdmin","STATIC_POPUP_TITLE")"
})
.load("/ClaimsAuditAdmin/ClaimAuditAdmin/OpenCreateNewSetDialog");
答案 0 :(得分:0)
试试这个
$("<div></div>")
.dialog({
modal: false,
title: "@CultureAPI.GlobalizeString("ClaimsAuditAdmin","STATIC_POPUP_TITLE")",
my: "center",
at: "center",
of: window
})
.load("/ClaimsAuditAdmin/ClaimAuditAdmin/OpenCreateNewSetDialog");