1

在 CSS 中,我试图弄清楚是否有编码使脚注始终(或至少开始)与正文中的相应编号位于同一页面上。我目前正在体验一个程序(Pressbooks),有时脚注会出现在正文中的编号之后的页面上。当脚注编号位于正文最后四行的任何位置时,就会发生这种情况。您可能建议修复的任何编码?

以下是相关编码:

@page {
  @footnotes {
    border-top-style:solid;
    border-top-width:thin;
    border-top-color:black;
    margin-bottom: 20px;
    margin-top: 20px;
    padding-top: 0.5em; } }

.footnote {
  font-size: 0.75em;
  display: footnote;
  display: prince-footnote;
  position: footnote;
  counter-increment: footnote;
  footnote-style-position: inside;
  margin: 0 0 5px 5px;
  padding-left: 0px;
  text-indent: -10px;
  line-height: 1.4;
  text-align: left; }

.footnote {
  font-size: 0.875em;
  display: footnote;
  display: prince-footnote;
  prince-footnote-policy: keep-with-line;
  position: footnote;
  counter-increment: footnote;
  footnote-style-position: inside;
  margin-left: 0px;
  line-height: 1.4;
  text-indent: 0em;
  text-align: justify; }
4

1 回答 1

1

正如这篇关于使用 css 进行打印设计的综合文章关于脚注的段落)中所述,您可以使用此 CSS 将脚注移动到其被引用的同一页面上的脚注区域:

.footnote {
  float: footnote;
}

这就是您使用 CSS 正确定义脚注的方式,但是程序(浏览器或打印预生产应用程序)可能总是会误解它。

于 2016-05-02T11:18:31.373 回答