WebFeb 16, 2015 · Datatables is adding the sorting icons as background so when the header is not visible it's not visible. In bootstrap integration the background get replaced by an element:after that it's shown. Display none is not working properly because then you loose the columns with. WebWell I wasn't sure I would get much response from this, but what I did was completely hacky. On fnInitComplete I simply check to see if the datatable has a scrollbar and, if not, I set the width of the div to the width of the headers.. I guess you would change #resultsDiv to whatever your wrapper div was and. Function to check for scroll bar:
jquery-datatables-rails/jquery.dataTables.bootstrap.scss at master ...
Web.dataTables_scrollBody::-webkit-scrollbar { display: none; } 其他推荐答案 I preferred Japheth Adhavan's answer, but it didn't work on Windows, so I modified the code that disables the tbody scroll bars. Webdiv.dts div.dataTables_scrollBody { background: repeating-linear-gradient (45deg, #edeeff, #edeeff 10px, #fff 10px, #fff 20px); I've tried different variations of each of the following with no change in the results: Plain text 1 2 3 4 $ ("div.dts div.dataTables_scrollBody").css ("background",""); other mods like happy mod
Tabledatatabledisplay tbody trhover sorting2 - Course Hero
Webdiv.dataTables_scrollBody tbody tr:first-child td {border-top: none;} div.dataTables_scrollFoot table {margin-top: 0!important; border-top: none;} /* Frustratingly the border-collapse:collapse used by Bootstrap makes the column: width calculations when using scrolling impossible to align columns. We have WebJul 6, 2012 · Adjust sScrollY after Init. Legacy interface notice: This discussion was created before the release of DataTables 1.10, which introduced a more modern API. The documentation for the old DataTables API is still available and newer versions are backwards compatible, but the primary documentation on this site refers to DataTables … WebtabledataTabledisplay tbody trhover sorting2 tabledataTableorder columnhover from FA 6 at Harvard University other modes of communication