https://datatables.net/reference/option/columns.className

通过

columns.className

属性设置:

例如:

js:

columns: [
{
data: 'patrol_record_id',
visible: false
},
{
data: 'org_name',
width: "20%"
},
{
data: {},
name: 'photo',
className : 'myown'
}
] html:
<style>

    .myown{
text-align: right;
}
</style>
05-11 20:29