简体   繁体   中英

i want to jQuery ui dialog's width to be adjusted according to content, But auto-width feature wont work in IE9 ,

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM