📜  数据表列对齐 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:34.400000             🧑  作者: Mango

代码示例1
dt-right - Right align text in the header and body.
dt-head-right - Right align text in the header only
dt-body-right - Right align text in the body only.

$('#myTable').DataTable( {
  columnDefs: [
    {
        targets: -1,
        className: 'dt-body-right'
    }
  ]
} );