google浏览器 打印A4 最大宽度和高度px

width: 1563px;(max)
1348+152 = 1400 分页了
1348+151 = 1398 分页了
1348+150 = 1398 没有分页

 

 var height = Math.Ceiling((double)(1398/ ViewBag.results[0].Count));
 <td width="15%"><div class="tbth" style="height:@(height)px;line-height: @(height)px;"><span>@item[i].Column2</span></div></td>
 <td align="right"><div class="dhg2"style="height:@(height-5)px;"><span>@item[i].Column5 &nbsp;</span></div></td>

 

posted @ 2018-08-14 18:20  enych  阅读(2766)  评论(0编辑  收藏  举报