本文介绍了css print - 大表 - 最后一行被拆分为某些页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 <style type="text/css"> @media print { thead { display: table-header-group; } tfoot { display: table-footer-group; } } @media screen { thead { display: block; } tfoot { display: block; } } </style> b $ b <script type="text/javascript"> $(document).ready(function () { // debugger $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "WrittenoffReportSummary.aspx/BindDatatable", data: "{pvid:" + $("#hndPVID")[0].value + "}", dataType: "json", success: function (data) { // debugger for (var i = 0; i < data.d.length; i++) { $("#tbDetails").append("<tr><td class='PVReportnormalreparTxt' style='width:400px; valign:top;'>" + data.d[i].DEPARTMENT + "</td><td class='PVReportnormalreparTxt' style='width:225px;'>" + data.d[i].LOCATIONHEADING + "</td><td class='PVReportnormalreparTxt' style='width:225px;'>" + data.d[i].AC_HEAD + "</td><td class='PVReportnormalreparTxt' style='width:74px;'>" + data.d[i].Total + "</td></tr>"); //$(this).parent().siblings().eq(0).attr("rowspan"); } mergecell(); }, error: function (result) { alert("Error"); } }); } }); </script> 推荐答案 (document).ready(function(){ // debugger (document).ready(function () { // debugger .ajax({ type: POST, contentType: application / json; charset = utf-8, url: WrittenoffReportSummary.aspx / BindDatatable, data: {pvid: + .ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "WrittenoffReportSummary.aspx/BindDatatable", data: "{pvid:" + ( #hndPVID)[ 0 ]。 value + }, dataType: json,成功:函数(数据){ // 调试器 for ( var i = 0 ; i < data.d.length; i ++){("#hndPVID")[0].value + "}", dataType: "json", success: function (data) { // debugger for (var i = 0; i < data.d.length; i++) { 这篇关于css print - 大表 - 最后一行被拆分为某些页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 11-02 10:40