大家好,我有一个使用 jquery.datatable 的代码
我希望标题居中对齐,td 右对齐,例如和
我的代码 js
var myegiftcardstable = $j('#myegiftcardstable').dataTable(
{
"bAutoWidth": false,
"bServerSide": true,
"bProcessing": true,
"sAjaxSource": "<?php echo $this->getUrl('myegiftcard/egiftcard/getMyEGiftCards') ?>",
"iDisplayLength": 10,
"bSearchable": false,
"bSortable" : true,
"bFilter": true,
"bLengthChange": false,
"sPaginationType": "full_numbers",
"aoColumns": [
{ "sName": "prod_name"},
{ "sName": "egiftcard_code" },
{ "sName": "price" ,"sClass": "a-right"},
{ "sName": "is_redeemed" , 'bSortable' : false},
{ "sName": "date_redeemed", "sClass": "width_120 " },
{ "sName": "action",'bSortable' : false }
],
}
);
你有什么建议吗?