使用JQuery弹出DIV并将其放在标题下方
position: { my: "top+43", at: "bottom", of: $("header") },
我可以用
做到这一点function loadPopUp(popUpMessage) {
$("#saveDialogSingleFeature").dialog({
width: "auto",
height: "auto",
minHeight: "none",
position: { my: "top+43", at: "bottom", of: $("header") },
show: { effect: "slideDown" },
hide: true,
closeOnEscape: true,
buttons:[]
}).parent().appendTo("form:first");
并且一切正常....但是我需要将这个相同的位置应用于div,从后面的代码......我的尝试是:
//div is 'SavedInfo'
SavedInfo.InnerHtml = "$('#saveDialogSingleFeature').dialog({position: { my: 'top+43', at: 'bottom', of: $('header') }}).parent().appendTo('form:first');";
SavedInfo.Attributes["style"] = "position: { my: 'top+45', at: 'bottom', of: $('header') }";
没有快乐......任何想法?