DataTable Fixed Header Not Being Applied

后端 未结 2 1859
悲&欢浪女
悲&欢浪女 2021-02-07 12:09

I have a table using datatables plug-in. I\'m trying to make my table header fixed, and follow this link : here

$(\'.device-table\').DataTable( {
    \"fixedHea         


        
2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-07 12:31

    Your fiddle seems to be missing the dataTables.fixedHeader plugin as well as the fixedHeader.dataTables CSS file which was causing you the page from rendering properly (with the fixed headers).

    Working DEMO: - https://jsfiddle.net/s2xbf9d0/7/

    Hope this helps!

提交回复
热议问题