I use the DataTables plugin with an adaptive table and fixed yScroll and disabled xScroll.
But I still get the horizontal scrollbar, although I am adding code as shown below.
scrollY: 200, scrollX: false,
Screenshot: 
Anyway, I'm using the Responsive table, why do I want to show the horizontal scrollbar?
Because of this, the functionality of Expand / Collapse on Columns also does not work ...
Please view the code, online example and screenshot below ...
CSS
th,td{white-space:nowrap;}
If I delete the above css, it works as expected. But I do not want to wrap td / th text. Here I ran into a problem :(
JQuery
$(document).ready(function() { var table = $('#example').DataTable( { dom: 'RCT<"clear">lfrtip', scrollY: 200, scrollX: false, columnDefs: [ { visible: false, targets: 1 } ], "tableTools": { "sRowSelect": "multi", "aButtons": [ { "sExtends": "print", "sButtonText": "Print" } ] } }); });
HTML
<table id="example" class="display responsive" cellspacing="0" width="100%"> <thead> <tr> <th>Name</th> <th>Position</th> <th>Office</th> <th>Age</th> <th>Start date</th> <th>Salary</th> </tr> </thead> <tbody> <tr> <td>Tiger Nixon</td> <td>System Architect</td> <td>Edinburgh</td> <td>61</td> <td>2011/04/25</td> <td>$320,800</td> </tr> .....................