有谁知道如何使jQuery对话框不可调整大小? 目前,我称之为:
var elem = $("#mydiv");
elem.dialog({
modal: true,
title: 'title',
buttons: {
Ok: function() {
$(this).dialog('close');
} // end function for Ok button
} // end buttons
}); // end dialog
elem.dialog('open')
答案 0 :(得分:101)
使用 resizable 选项
var elem = $("#mydiv");
elem.dialog({
modal: true,
resizable: false,
title: 'title',
buttons: {
Ok: function() {
$(this).dialog('close');
} //end function for Ok button
}//end buttons
}); // end dialog
elem.dialog('open');
答案 1 :(得分:6)
或者简单地说:
$('#mydiv').dialog({resizable: false});