【问题标题】:jqGrid jQuery UI button wrapping in toolbarjqGrid jQuery UI 按钮包装在工具栏中
【发布时间】:2011-02-19 08:52:12
【问题描述】:

我有一个 jQuery UI 按钮,我将它放在 jqGrid 工具栏中,但按钮的内容是换行的。我试图通过使用 CSS white-space 属性来防止包装无济于事。

这是正在发生的事情的快照:

alt text http://www.freeimagehosting.net/uploads/c455ebf64e.png

这是我尝试解决问题的两个代码 sn-ps:

    $("#t_imageList").css("white-space", "nowrap").html('<button>Add</button>');

    $("#t_imageList button").button({
        icons: {primary: 'ui-icon-plus'},
        text: true
    });

和/或

$("#t_imageList button").css("white-space", "nowrap").button({
    icons: {primary: 'ui-icon-plus'},
    text: true
});

有人遇到过同样的问题吗?如果是这样,您的解决方案是什么?

【问题讨论】:

    标签: jquery-ui button jqgrid


    【解决方案1】:

    这是一个重复的问题:

    jQuery UI Dialog Button Icons

    其实这是版本的问题。我使用的是 jquery 1.8,但使用的是 1.7 css 文件。一个简单的疏忽。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2010-09-16
      • 2013-01-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-10
      相关资源
      最近更新 更多