Javascript jQuery datatable不会打印所有页面

Javascript jQuery datatable不会打印所有页面,javascript,jquery,html,datatables,jquery-pagination,Javascript,Jquery,Html,Datatables,Jquery Pagination,我正在使用jQuery DatatablejQuery版本:jQuery-3.1.1.min.js。我需要打印表中的所有数据在我的场景中,我有56行,每页10条记录,然后变成6页。但它只打印部分数据36条记录。但我也有pdf功能,它工作得很好。当点击pdf按钮时,它会生成带有所有重编码的pdf <script type="text/javascript" src="<c:url value='/static/js/jquery-3.1.1.min.js' />"><

我正在使用jQuery DatatablejQuery版本:jQuery-3.1.1.min.js。我需要打印表中的所有数据在我的场景中,我有56行,每页10条记录,然后变成6页。但它只打印部分数据36条记录。但我也有pdf功能,它工作得很好。当点击pdf按钮时,它会生成带有所有重编码的pdf

<script type="text/javascript" src="<c:url value='/static/js/jquery-3.1.1.min.js' />"></script>
<script src="<c:url value='/static/js/dataTables/jquery.dataTables.min.js' />"></script>
<script src="<c:url value='/static/js/dataTables/dataTables.buttons.min.js' />"></script>   
<script src="<c:url value='/static/js/dataTables/buttons.print.min.js' />"></script>


        <script>
            $(document).ready(function(){
                $('#adTable').DataTable({
                    dom: 'Bfrtip',
                    buttons: [
                         'pdf', 'print'
                    ]
                });
            });
        </script>



    <table id="adTable" class="table table-hover">
        <thead>
            <tr>
                <th>Index</th>
                <th>Subject</th>
                <th>Category</th>
                <th>Status</th>

            </tr>
        </thead>
        <tbody>
            <c:forEach var="obj" items="${list}" varStatus="loop">
                <tr>
                    <td>${loop.index+1}</td>
                    <td>${obj.subject}</td>
                    <td>${obj.category}</td>
                    <td>${obj.status}</td>
                </tr>
            </c:forEach>
        </tbody>
    </table>

嘿,你可以使用下面的代码来打印所有文件


我找到了解决方案。问题的发生是因为我的CSS文件。 有一个css文件覆盖了我的html body标记overflow-x

我的外部css文件看起来像下面这样

body {
    padding: 0;
    margin: 0;
    height: 100%;
    min-height: 100%;
    font-family: 'Open Sans', sans-serif;
    color: #4f5f6f;
    overflow-x: hidden; }
我换成了吼叫

body {
    padding: 0;
    margin: 0;
    height: 100%;
    min-height: 100%;
    font-family: 'Open Sans', sans-serif;
    color: #4f5f6f;
    overflow-x: visible; }

我试过了,但不起作用。它给出了相同的输出,并没有打印所有的记录。jone,你会把我上面用过的js链接放在下面吗,像下面的一样,但结果相同。不客气,非常感谢你的努力
body {
    padding: 0;
    margin: 0;
    height: 100%;
    min-height: 100%;
    font-family: 'Open Sans', sans-serif;
    color: #4f5f6f;
    overflow-x: visible; }