【发布时间】:2016-02-05 18:20:19
【问题描述】:
这个问题让我睡不着,有没有办法动态打破表格,并在下一页显示标题?
事实上,它是一份报告,我不知道它将在屏幕上显示的行数,我正在使用 AngularJS 获取信息并显示在屏幕上。
这是我的页面:
打印时:
这是我的 HTML 页面
<!DOCTYPE html>
<html>
<head>
<!-- #INCLUDE VIRTUAL="/wvdf_bib/BIB/Includes/bHtmlHead.inc"-->
</head>
<body>
<div class="container">
<div class="row">
<div class="col-xs-8">
<div class="col-xs-4">
<br />
<img class="col-xs-12" src="http://www.cargoweber.com/logos/profile/mepl-international-llc-logo-dubai-dub-916.png" />
</div>
<div class="col-xs-8">
<h3>Demo Company</h3>
<p>
John Smith<br />
demo@demo1.com<br />
http://www.demo1.com<br />
Phone: Tel: +1-908-301-6025
</p>
</div>
</div>
<div class="col-xs-4">
<h1>Rate quote</h1>
<h5>Created on 17 Jun 2015</h5>
<p>Document Number #LCL FCLJS150617003-1</p>
<small>As of date <strong>17 Jun 2015</strong></small><br />
<small>Valid until <strong>17 Jul 2015</strong></small>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<table class="table table-bordered">
<thead>
<tr>
<th class="col-xs-6">To</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="col-xs-5">
<br />
<img class="col-xs-12" src="http://www.cocacola.pt/19201201/jopt/post_images/standard/detail_lbITzYnZakM0pchLQsx9frA8wmHFdO.png" />
</div>
<div class="col-xs-7">
<h3>Coca Cola</h3>
<p>
http://www.cocacola.com
</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="row>
<div class="col-xs-12">
<table class="table table-bordered">
<thead>
<tr>
<td colspan="7"></td>
<td colspan="3">Total Ocean Freight Sum Up</td>
</tr>
<tr>
<th>POL</th>
<th>Carrier</th>
<th>POD</th>
<th>VIA Port</th>
<th>Effective date</th>
<th>Expiry date</th>
<th>Transit time</th>
<th>Container20</th>
<th>Container40</th>
<th>Container40HC</th>
</tr>
</thead>
<tbody>
<tr>
<td>CNYTN Port of Yantian</td>
<td>NYK Line</td>
<td>USLAX Los Angeles</td>
<td></td>
<td>5/17/15</td>
<td>5/17/16</td>
<td>20 days</td>
<td>USD 1,235.00</td>
<td>USD 1,627.00</td>
<td>USD 1,627.00</td>
</tr>
<tr>
Another x rows
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
问题是:我需要在新页面上再次打印该广告,但我无法让它工作 =(
有谁知道我该如何解决这个问题?
【问题讨论】:
-
您的问题是关于浏览器中的演示还是关于在打印机上打印 HTML 输出?
-
打印 HTML 输出。
标签: javascript html css