0
我知道我的问题可能与其他问题重复,但我尝试了其他解决方案,但未能为我工作。在我的情况,我用header
使用静态头印刷和使用div
我的页脚和为我的内容我用表格来显示数据..当第一页上的内容溢出时,重复页眉和页脚
,所以我现在的问题是,当我试图打印,如果页面来自表格的内容溢出,进入第2页。我想提出的是,当我的表第一页上溢出时,应及时到第二页和页眉和页脚也将在第二页看到等..
HEADER
<header>
<center><h3><b>Miguel Enrique</b></h3>
<p><i>Diplomat<br>Fellow</i><br>Orthopaedic Surgeon</p>
</center>
</header>
<div class="row uniform half collapse-at-2">
<div class="12u">
<center><h4><b>---data----</b></h4></center>
<h4><p>------DATA--------------<br>Tel. 77 19 349 | 65 90 097
<br>Mon<b>·</b>Wed<b>·</b>Fri | 3:00pm - 5:00pm
<br>Tues<b>·</b>Thurs<b>·</b>Sat | 11:00am - 2:00pm |
<br> (All by appointment)</p></h5>
</div>
<div class="6u">
<div class="row uniform half">
<div class="12u">
<center><h4><b>--DATA---</b></h4></center>
<h5><p> ------DATA-------
<br>Tel. No. : (632) 789 - 7700 loc. 7330
<br>Mon-Thurs: 11am - 4pm | (by Appointment)</p><h5>
</div>
</div>
</div>
<div
BODY
<table class="print">
<thead>
<tr>
<th scope="col"><b>No.</b></th>
<th scope="col"><b>Prescriptions</b></th>
</tr>
</thead>
<tbody>
<?php foreach($new_array2 as $value) { $inc = @$inc + 1;?>
<tr>
<td><?php echo $inc; $prescription_array=explode('/',$value);?>
</td>
<td><?php foreach($prescription_array as $value2)
{ echo "<h5>".$value2."</h5>";
} ?>
</td>
</tr>
<?php }?>
</tbody>
</table>
页脚
<div class="row uniform half collapse-at-2">
<div class="12u">
<div class="row uniform half">
<font size="5"><b>Name</b></font><br>
License No. : 1<br>
</div>
</div>
</div>
有没有什么办法解决这个问题?打印时,如果内容在第一页上溢出,它将转到第二页,页眉和页脚将显示在第二页上。
第一个图像是关于当我尝试打印时会发生什么。我想要实现的是下面的第二张图片。是否有可能使用谷歌浏览器?