1.this the code to show jQuery dialog
function onSucess(result) {
result = result.substring(result.indexOf("<"), result.length);
$("#div1").html(result);
$('#div1').dialog({
modal: true,
height: 'auto',
width:'auto',
buttons: {
"Ok": function () {
$(this).dialog("close");
}
}
});
}
as you can see, both height and width are set to auto mode
try width:"100%"
instead of width:"auto"
. similarly height too.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.