jQuery Ui对话框宽度:自动Ie8

jQuery Ui对话框宽度:自动Ie8,jquery,jquery-ui,jquery-ui-dialog,Jquery,Jquery Ui,Jquery Ui Dialog,我有如下代码的jQuery Ui对话框: $("#RoleProperty").dialog({ autoResize: true, show: "Clip", hide: "Blind", height: 'auto', width: 'auto', autoOpen: false, modal: true, position: 'top', draggable: true, title: "مشخصات نقش"

我有如下代码的jQuery Ui对话框:

$("#RoleProperty").dialog({
    autoResize: true,
    show: "Clip",
    hide: "Blind",
    height: 'auto',
    width: 'auto',
    autoOpen: false,
    modal: true,
    position: 'top',
    draggable: true,
    title: "مشخصات نقش",
    open: function (type, data) {
        $(this).parent().appendTo("form");

    },
    buttons: { "بستن": function () { $(this).dialog("close"); document.getElementById("<%=btnCancel.ClientID%>").click(); } }
});
$(“#角色属性”)。对话框({
自动调整大小:正确,
显示:“剪辑”,
隐藏:“盲”,
高度:“自动”,
宽度:“自动”,
自动打开:错误,
莫代尔:是的,
位置:'顶部',
真的,
标题:“مش㶎نش”,
打开:功能(类型、数据){
$(this.parent().appendTo(“form”);
},
按钮:{“بتن”:函数(){$(this).dialog(“close”);document.getElementById(“”。click();}
});
但是属性width:auto在IE8中工作不正确。 它可以在Firefox中正常工作。 jQueryUI版本是1.8.5 jQuery版本是1.5

-附加信息。我正在服务器端打开此对话框(在ASP.NET之后 发回)


确保IE兼容模式没有问题。您是否在刷新按钮旁看到断页图标

如果是这样,请在您的应用程序中使用以下内容:
这里有一个有趣的答案:


您所说的“如果是这样,请在您的:”?我对jquery UI v1.8.9和jquery v1.4.4也有同样的问题,这与兼容性模式无关。我对。。。专心地关注这个问题。我还在服务器端以ajax模式加载对话框的内容。