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