作者:无心之无心 | 来源:互联网 | 2023-06-13 09:04
I am using some jquery pop up dialogure
我正在使用一些jquery弹出对话框
var div = $('#mditem_temp');
var dlg = $(div).html(data).dialog({
height: 'auto',
width: 'auto',
modal: true,
show: "drop",
hide: "fold",
position: "top",
autoResize:true,
close: function (event, ui) {
$("#mditem_temp").dialog('close');
},
buttons: {
'Add': function (d) {
pqr();
$(this).dialog('close');
$("#mditem_temp").dialog('close');
}
}
}).dialog('open');
and the data that is to write in it is a partial view, but the pop up do not adjust height width with the data. What may be the reason?
并且要在其中写入的数据是局部视图,但弹出窗口不会根据数据调整高度宽度。可能是什么原因?
1 个解决方案