【发布时间】:2016-01-27 12:18:57
【问题描述】:
我需要在表格、表格长度和表格分页之间添加一些空格。 像这样:enter link description here 这是我的js代码:
$(document).ready(function () {
$('#data-table').dataTable({
bFilter: false,
aoColumnDefs: [
{
bSortable: false,
aTargets: [1, 2],
},
{
'bVisible': false,
aTargets: [4],
},
{
"targets": 0,
"render": function (data, type, full, meta)
{
return '<a href = "@(Url.Action("EmployeeAccount", "Company"))?EmployeeId=' + full[4] + '">' + data + '</a>';
}
},
]
})
});
HTML:
<table class="table table-striped table-bordered table-hover little_margin_table" id="data-table" width="100%">
/...
</table>
我该怎么做?
【问题讨论】:
标签: javascript jquery css datatables