首页 > 解决方案 > 数据表 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>

标签: javascriptjquerydomdatatables

解决方案


推荐阅读