fixed header doesn't work !

fixed header doesn't work !

mori_italymori_italy Posts: 11Questions: 3Answers: 0

FIRST: in my html page i have:
<link rel="stylesheet" type="text/css" href="assets/DataTables/FixedHeader-3.1.4/css/fixedHeader.dataTables.css">

SECOND: i have this config.js file:

$(document).ready(function() {
$('#showdata').DataTable(
{
"searching": true, // search
"ordering": true, // ordering columns
"paging": true, // pagination
"lengthMenu": [[10, 50, 100, -1], [10, 50, 100, "all"]], // elements
"fixedHeader": true, // doesn't work !
fixedHeader: {header: true} // doesn't work !
}
);
});

THIRD: i have this simple table:

idinserito_dacolonna_Acol_bcolonna_ddddddcolonna_eeeeeeeeeecolonna_fffffffcolonna_ggggcolonna_hhhhcolonna_iiiicolonna_jjjjjcolonna_kkkk
000001eMori1-06/06/20190.00 g1ah1mi1mj1mk1m
000002eMori1-21/06/20190.00 d2Agrigentog2h2i2j2k2
000003eMori1-17/05/201999999.90 d2 lunghissima sdafs...agrigentoprova2bg11h1i3j33
000004eMori1-18/05/2019333.00 32121dhdfghfgcassano d`addaprova2b
000005eMori1-30/06/20190.00 corretto
000006eMori1-18/05/20198888.00 d8 prova2bg8h8i8j8k88 lunghidssima dfg...
000007eMori1-0.00 12345678901234567890
000008eMori1-15.58 ____________________...
000009eMori1-01/01/197015.50 
000012eMori1-26/05/20190.00 
000013eMori1-0.00 bbèèòlèòlèòl
000014eMori1-19/05/20190.00 
000015eMori1-19/05/20190.00 

FINALLY: i have this css: can be this the problem ?
.fixedcontainer
{
float:left;
width:100%;
padding:0 35px;
overflow-x:auto;
}
.contenuto
{
height:555px;
overflow-x:auto;
overflow-y:auto;
}

I don't know why doesn't work !!!
Someone can help me ?
Thanks

Answers

This discussion has been closed.