0
我创建使用具有自举数据表与此指令数据表显示在报头
var bTable = $('#example2').DataTable({
language: { url: 'assets/plugins/datatables/i18n/Spanish.json' },
processing: true,
fixedHeader: true,
serverSide: true,
responsive:true,
ajax: "modulos/estados.data.php",
columns: [
{ data: "id561" },
{ data: "des561" },
{ data: "accion561" },
{ data: "res561" }
],
order: [[ 1, "asc" ]],
columnDefs: [
{
targets : 0,
searchable: false,
render: function (data, type, row)
{ return row.id561 }
},
{
targets : 1,
searchable: true,
render: function (data, type, row)
{ return data }
},
{
targets : 2,
searchable: false,
render: function (data, type, row)
{ return data }
},
{
targets : 3,
orderable: false,
searchable: false,
render: function (data, type, row)
{ return data }
}
]
});
所示的其上显示标题的顺序图标两倍
问题是只激活Bootstrap css,如果我用jquery它的作品
感谢您的帮助!
这不正确的问题。表格元素是
@MartinVarta,请参阅[本示例](http://jsfiddle.net/rhjLbgyw/)的问题,这是非常普遍的问题。当我在我的答案中提到时,除了包含其他文件,还包括'jquery.dataTables.min.css',也会出现这个问题。请列出您包含的文件或删除'jquery.dataTables.min.css',看看是否能解决问题。 –
相关问题