当表格跨越Firefox中的多个页面时,不会打印单元格边框(第1页上除外) [英] Cell borders are not printed (except on 1st page) when table spans multiple pages in Firefox

查看:284
本文介绍了当表格跨越Firefox中的多个页面时,不会打印单元格边框(第1页上除外)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我打印下一页时,第二页上的边框未显示(请参阅下图)。 HTML标签正在工作。如何在第二页获取边框?



@media print

< table width =100%bordercolor =#000000style =border-collapse:collapse; border:1px solid#000000border =1cellpadding =5cellspacing =0> < TBODY> < TR> < TD>&安培; NBSP;< / TD> < TD>&安培; NBSP;< / TD> < TD>&安培; NBSP;< / TD> < TD>&安培; NBSP;< / TD> < TD>&安培; NBSP;< / TD> < TD>&安培; NBSP;< / TD> < / TR> < TR> < TD>&安培; NBSP;< / TD> < TD>&安培; NBSP;< / TD> < TD>&安培; NBSP;< / TD> < TD>&安培; NBSP;< / TD> < TD>&安培; NBSP;< / TD> < TD>&安培; NBSP;< / TD> < / TR> < / tbody>< / table>

解决方案

尝试设置border-collapse为初始值并在表中定义属性cellspacing = 0。它解决了我的问题


When I print the following page, the borders on the second page are not shown (see image below). The HTML tags are working though. How can I get the borders also on the second page?

@media print {
    thead {
        display: table-header-group;
    }
}

<table  width="100%"  bordercolor="#000000"  style=" border-collapse:collapse; border:1px solid #000000"  border="1" cellpadding="5" cellspacing="0">
  <tbody>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
   
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  </tbody>
</table>

解决方案

try to set the border-collapse to initial and define the attribute cellspacing=0 in the table. It solve the problem to me

这篇关于当表格跨越Firefox中的多个页面时,不会打印单元格边框(第1页上除外)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆