HTML表固定顶行没有
我使用PHPExcel库将Excel文件转换为html表。
编辑输出: https : //jsfiddle.net/simsimzzz/d1ccqveq/15/
我怎么能(JQuery?)将顶行修复为
Client Type Client N° Incident blabla
PHPExcel不会生成
..
编辑 :现在我有一个
,如何修复这个并根据
保持单元格的宽度
似乎你需要创建一个
然后从
中将标题行移入其中。
试试这个 :
jQuery(function($) { var $table = $('#sheet0'); // select the table of interest var $thead = $('').prependTo($table); // create $table.find('tbody tr').eq(0).appendTo($thead); // move the header row from tbody into thead // Now the table is ready to have your chosen method applied to fix the position of the thead. });