小编sel*_*lmo的帖子

取消打印广告的高度限制

当我玩这个的时候,我遇到了一些奇怪的事情。在 Firefox 中,当 header 内的 div 高度超过 252px 时, header 将不会重复。尝试使用 Chrome,问题发生在大约 262px 处。以前有人遇到过这种情况吗?有没有办法忽略或重置这个限制?

@media print {
  @page {
    size: auto;
    /* auto is the initial value */
    margin: 0mm 0mm 0mm 0mm;
    /* this affects the margin in the printer settings */
  }
  thead {
    display: table-header-group;
  }
  #pgbrk {
    page-break-after: always;
  }
}

@media screen {
  @page {
    size: auto;
    /* auto is the initial value */
    margin: 0mm 0mm 0mm 0mm;
    /* this affects the margin in …
Run Code Online (Sandbox Code Playgroud)

html css print-css

6
推荐指数
0
解决办法
1241
查看次数

标签 统计

css ×1

html ×1

print-css ×1