【问题标题】:jQuery Ui Dialog width:auto Ie8jQuery Ui 对话框宽度:自动 Ie8
【发布时间】:2011-05-19 16:30:30
【问题描述】:

我有如下代码的 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(); } }
});

但属性 width:auto 在 IE8 中无法正常工作。 它可以在 Firefox 中正常工作。 jQuery UI 版本是 1.8.5 jQuery 版本是 1.5

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

【问题讨论】:

  • 我在使用 jquery UI v1.8.9 和 jquery v1.4.4 时遇到了同样的问题,这与兼容模式无关。我很感兴趣……关注这个问题。我还在服务器端以 ajax 模式加载对话框的内容。

标签: jquery jquery-ui jquery-ui-dialog


【解决方案1】:

确保您没有遇到 IE 兼容模式的问题。您是否看到刷新按钮旁边的页面图标损坏?

如果是这样,请在您的 :

【讨论】:

  • “如果是这样,请在您的 : 中使用类似以下内容”是什么意思?
【解决方案2】:

这里有一个有趣的答案:

Auto size a jQuery UI dialog in Internet Explorer

【讨论】:

    猜你喜欢
    • 2011-11-06
    • 1970-01-01
    • 2018-06-17
    • 1970-01-01
    • 2018-04-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多