Jquery Jtable对齐字段



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

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%'
    }

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

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

在类中定义您的风格

.Stacksalign
{
    text-align: center;
}