【问题标题】:jQuery dialog buttons - How to set the dir to be rtl/ltr OR how to place the buttons in left corner of the dialogjQuery 对话框按钮 - 如何将 dir 设置为 rtl/ltr 或如何将按钮放在对话框的左角
【发布时间】:2011-02-15 08:10:43
【问题描述】:

您好,在浏览了一段时间并查看了我发现的所有以前的答案后,我决定在这里问这个:

我打开了一个对话框并显示为 RTL,所有的东西都显示在 RTL 中,除了按钮,现在不管我做什么都留在右下角

我想将按钮放置在按钮左角,应该在 RTL 方向上显示 我浏览了我在 stackoverflow 中找到的所有 Q/A,但没有任何东西对我有用:/ [代码] $("#ccDialog").dialog({

    minHeight: 100,
    minWidth: 500,
    modal:true,
    resizable:false,
    buttons: [
        {
            text: "Ok",
            click: function() { $(this).dialog("close"); }


        },
        {
            text: "Cancel",
            click: function() { $(this).dialog("close"); }
        }
    ]

});
$('.ui-dialog-titlebar-close').remove();
$("#ccDialog").height("700");

[/代码]

我尝试添加类/目录属性,但没有成功...

谢谢,

丹尼尔。

【问题讨论】:

    标签: jquery css button dialog dir


    【解决方案1】:

    只需将其添加到您的 CSS 中,对话框按钮将位于左侧而不是右侧。

    .ui-dialog-buttonset{
    float:left;
    }
    

    【讨论】:

      猜你喜欢
      • 2019-11-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-20
      • 2012-01-25
      • 1970-01-01
      • 1970-01-01
      • 2012-08-08
      相关资源
      最近更新 更多