18910140161

html-如何自动创建分页符?-堆栈溢出

顺晟科技

2022-10-19 14:12:56

38

是否有一种方法可以自动检测内容何时侵占页边距,然后用CSS强制分页?

我的代码是

body {
  font: inherit !important; 
  color: black;
}
.ql-editor *{
  font-family: cwTeXKai !important;
}

table {
  width: 90%;
  border-collapse: collapse;
  border: none;
  margin-top: 18pt;
  border: solid 1pt;
}


td {
  border: solid 1pt;
}

p {
  font-family: cwTeXKai !important;
  display: block;
  margin-block-start: .03em;
  margin-block-end: .03em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
}
span{
  font-family: cwTeXKai !important;
}

@page {
  size: A4 portrait;
}

我已经观察了此方法,但它仍然不起作用。

body {
  font: inherit !important; 
  color: black;
}
.ql-editor *{
  font-family: cwTeXKai !important;
}

table {
  width: 90%;
  border-collapse: collapse;
  border: none;
  margin-top: 18pt;
  border: solid 1pt;
}


td {
  border: solid 1pt;
}

p {
  font-family: cwTeXKai !important;
  display: block;
  margin-block-start: .03em;
  margin-block-end: .03em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
}
span{
  font-family: cwTeXKai !important;
}

@page {
  size: A4 portrait;
}

那么如何自动绘制中断边框?


顺晟科技:

  • TAG:
相关文章
我们已经准备好了,你呢?
2024我们与您携手共赢,为您的企业形象保驾护航