尝试将80%的宽度添加到将表与搜索和条目框包装在一起的DIV中(DIV with ID
datatables\u table\u 0\u wrapper
in my example)
<div id=“dataTables_Table_0_Wrapper”
class=“dataTables_wrapper no footer”类
style=“width:80%;margin:0 auto;”>
<div class=“dataTables_length”id=“dataTables_table_0_length”>
…
</DIV>
<div id=“dataTables_Table_0_filter”class=“dataTables_filter”>
…
</DIV>
<table class=“行边框悬停数据表无页脚”
dataTable=“”
id=“dataTables_Table_0”
role=“网格”
aria describedby=“数据表\u table_0_info”>
…
</table>
width:80%;margin:0 auto;on this wrapper div should make it 80%wide and centraled:(代码>宽度:80%;页边:0 auto;on this wrapper div should make it 80%wide and central

)
<div id="DataTables_Table_0_wrapper"
class="dataTables_wrapper no-footer"
style="width: 80%; margin: 0 auto;">
<div class="dataTables_length" id="DataTables_Table_0_length">
...
</div>
<div id="DataTables_Table_0_filter" class="dataTables_filter">
...
</div>
<table class="row-border hover dataTable no-footer"
datatable=""
id="DataTables_Table_0"
role="grid"
aria-describedby="DataTables_Table_0_info">
...
</table>
width: 80%; margin: 0 auto;
在这个包装器上,DIV应该使其80%宽并居中:
