Fixed Column Width Not Working :/ — DataTables Forums
Có thể bạn quan tâm
- Examples
- Manual
- Reference
- Extensions
- Plug-ins
- Blog
- Forums
- Discussions
- Sign In
- Support
- FAQs
- Download
- Purchase
Hello I've seen other working examples, but I tried a lot of things and still the fixed column width is not working on my table.
http://live.datatables.net/qadupaya/1/edit
Could someone give a quick hint? I know I haven't set width in this example linked to, but it's because I couldn't make it work.
Thank you - Jonas
Answers
- sandy Posts: 913Questions: 0Answers: 236 August 2019
Hi tekuila,
You needed to include the fixedColumns scripts and styling in your HTML. You also need to define the fixedColumns property in your initialisation. In the example I have done the following.
"fixedColumns": { leftColumns: 3, },I have linked the example here.
This will mean that your custom styling will need some adjustment for the floating header.
Hope this helps,
Sandy
- tekuila Posts: 24Questions: 5Answers: 0 August 2019
Thanks! I tried to include fixedColumns etc, but didn't work.
I found that adding CSS "table-layout: fixed;" to the table was the solution.
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In RegisterQuick Links
Categories
- 74.5K All Categories
- 56 Priority support
- 24.1K Free community support
- 1K General
- 14 Announcements
- 2.5K DataTables
- 84 DataTables 2
- 1.3K DataTables 1.10
- 92 DataTables 1.9
- 35 DataTables 1.8
- 9 CloudTables
- 2.2K Editor
- 2.8K Extensions
- 20 AutoFill
- 311 Buttons
- 50 ColVis
- 30 DateTime
- 68 FixedColumns
- 50 FixedHeader
- 33 ColReorder
- 31 KeyTable
- 104 Responsive
- 23 RowReorder
- 42 Scroller
- 166 SearchBuilder
- 193 SearchPanes
- 107 Select
- 26 StateRestore
- 22 TableTools
- 220 Bug reports
- 67 Feature requests
- 100 Plug-ins
- 11 Blog
- 70 Web-site
DataTables
DataTables designed and created by SpryMedia Ltd. © 2007-2023 MIT licensed. Privacy policy. Supporters. SpryMedia Ltd is registered in Scotland, company no. SC456502.
Từ khóa » Html Table Fixed Column Width Not Working
-
Force Table Column Widths To Always Be Fixed Regardless Of Contents
-
How To Fix The Width Of Columns In The Table ? - GeeksforGeeks
-
How To Set Fixed Width For
In A Table ? - GeeksforGeeks CSS Table-layout Property - W3Schools
Table-layout - CSS: Cascading Style Sheets - MDN Web Docs
Stop Using To Set Table Width In HTML: Here's Why »
DataTable Width & Column Width | Dash For Python Documentation
How To Set The Table Column Width Regardless Of The Text Amount ...
Column Width In Tables Is Not Behaving As Expected
Css Table Td Width Not Working Code Example
Changing Column Width - The Complete HTML5 Tutorial
Chapter 3. How To Specify Tables And Columns Width
Fixed Table Layouts | CSS-Tricks
Advanced Table Settings: Column Width, Alignment And Merging Cells
Copyright © 2022 | Thiết Kế Truyền Hình Cáp Sông Thu