【问题标题】:Jquery Jtable align fieldsJquery Jtable对齐字段
【发布时间】:2015-06-29 19:08:27
【问题描述】:

如何使字段在 jtable 中居中对齐。我想让最后一个字段(Stacks:) 居中对齐

fields: {
    ID: {
      key: true,
      create: false,
      edit: false,
      list: false
    },
    TID: {
      title: 'Type',
      width: '30%',
      inputClass: 'validate[required]',
      options: <%= DisplayCribOptions() %>
    },
    Number: {
      title: 'Crib No',
      width: '20%'
    },
    Name: {
      title: 'Name',
      width: '20%'
    },
    Stacks: {
      title: 'Configurable Stacks',
      width: '30%'
    }

【问题讨论】:

    标签: jquery jquery-ui jquery-plugins


    【解决方案1】:

    使用 listClass 属性为字段添加您自己的样式。

    Stacks: {
          title: 'Configurable Stacks',
          width: '30%',
           listClass: 'Stacksalign'
    
        }
    

    在课堂上定义你的风格

    .Stacksalign
    {
        text-align: center;
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-10-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-02
      • 2013-09-26
      • 1970-01-01
      相关资源
      最近更新 更多