2017年11月16日 星期四

datatable的thead 會跑掉

在建立dataTable時,發現如果設定
scrollY:'420px',
爾且又將table包進
boostrap 的 tab-pane裡面時
thead 會跑掉
相關文章
https://datatables.net/forums/discussion/14342/column-header-not-aligned-with-column-data-with-horizontal-scrolling/p2
thead縮成一塊
https://datatables.net/forums/discussion/2148/header-width-issue

我是將
scrollY:'420px'刪掉即解決

Column width issues with Bootstrap tabs
https://www.gyrocode.com/articles/jquery-datatables-column-width-issues-with-bootstrap-tabs/

沒有留言:

張貼留言