javascript - 数据表 DOM 水平位置
问题描述
我正在尝试将引导数据表分页的功能元素并排放置。
但结果显示特征元素是垂直对齐的。
如何水平对齐特征元素?
.js 文件:
$(document).ready(function () {
$('#executives').DataTable({
"dom": '<"top"lpf>t<"bottom"lpi><"clear">'
});
});
html:
<table class="table table-striped" id="executives">
<thead>
<tr id="myTable">
<th>Customer Number</th>
<th>Name</th>
<th>Address</th>
<th>Contact</th>
<th>Action</th>
</tr>
</thead>
</table>