This is the page 1
This is the page 2
This is the page 3
This is the page 4
几个月前,当我使用以下代码在浏览器(firefox)中打印HTML文档时,能够显示页码:
body {
width: 300px;
counter-reset: page;
}
#header {
border: 1px solid;
overflow: hidden;
}
#header>div {
float: left;
width: 50%;
line-height: 100px;
text-align: center;
}
#foot {
border: 1px solid;
}
#header p {
margin: 0;
}
#header #pagenum {
border-left: 1px solid;
width: calc(50% - 1px);
}
@media print {
.pageBreak {
page-break-before: always;
padding-bottom: 120px;
}
#content {
padding-top: 120px;
}
#header {
display: block;
position: fixed;
top: 0pt;
left: 0pt;
right: 0pt;
}
.pagenum:after {
content: "Page " counter(page);
counter-increment: page;
}
#foot {
display: block;
position: fixed;
bottom: 0pt;
}
}
@media screen, handheld {
#header {
display: none;
}
#foot {
display: none;
}
}
Header
This is the page 1
This is the page 2
This is the page 3
This is the page 4
Foot Notes
可以在Firefox 45.7.0中使用。 由于最后一次Firefox更新几个月后,它不再工作了。 我目前使用的是Firefox Quantum 69.0。 我的问题:1.是否不再受支持? 2.打印html文档时,如何在每页上显示正确的页码?
最好的祝福
WORD文档插入页码时有几页不显示可能是由于之前排版插入了分隔符,是的页面中无法进统一插入页码,需要进行删除分隔符操作。
工具:分隔符 Word软件
步骤:
第一步,当操作Word文档的时候如果在插入空白页的时候同时插入了分隔符,这个时候文档就不是一个统一的版面了,需要手动删除分隔符进行排版。
第二步,使用快捷键Ctrl+F调出查找命令对话框,点击特殊格式—分节符,然后把这些分节符全部替换为空白的空格就可以了。
第三步,删除后,然后使用插入—页码命令重新对文档进行页码的插入即可完成。
回答:
Word中插入图片后,让水印显示在图片上面可以通过以下几步实现:
第一步:先制作水印图片。用Windows自带的“画图”打上水印文字,如果需要旋转,就用图片处理软件(简单的如FastStone Image Viewer)编辑并保存为图片文件。
第二步:进入Word,点插入→图片,插入一张需要叠加水印的工作图片。
第三步:接着点插入→形状→矩形,画出一个蓝色矩形框,该框应该比刚才插入的图片更大一些,遮挡住图片。
第四步:在框上点右键→设置对象格式,在右边会出现矩形框的属性调整界面,在“填充与线条”之下,“线条”选择“无线条”,“填充”选择“图片或纹理填充”,然后点“本地文件”,读入刚才制作的水印图片。
第五步:向右调整“透明度”滑杆,把水印图片设置为合适的透明度,于是一张“水印”文件诞生了!(因为这并非真正的水印,而是一张半透明的图片)如果一个Word文档里有很多页,只要复制这张半透明的水印图片然后挨个Ctrl+V粘贴即可。
注:发现有些文档打开以后插入矩形,插入的是空白矩形而不是蓝色矩形,此时新建一个Word文档,把原文档粘贴过来再插入矩形就可以了。
http://www.w3.org/TR/WCAG20-TECHS/PDF17.html
The objective of this technique is to help users locate themselves in a document by ensuring that the page numbering displayed in the PDF viewer page controls has the same page numbering as the document. For example, Adobe Acrobat Pro and Reader display page numbers in the Page Navigation toolbar. The page number format is specified by the /PageLabels entry in the Document Catalog.
Many documents use specific page number formats within a document. Commonly, front matter is numbered with lowercase Roman numerals. The main content, starting on the page numbered 1, may actually be the fifth or sixth page in the document. Similarly, appendices may begin with page number 1 plus a prefix of the appendix letter (e.g., "A-1").
Authors should make sure that the page numbering of their converted documents is reflected in any page number displays in their user agent. Consistency in presenting the document's page numbers will help make navigating the document more predictable and understandable.
As an example, if /PageLabels has not been provided to describe the page number formatting, the page numbering scheme will not be reflected in the Page Navigation toolbar in Adobe Acrobat Pro or Reader. This toolbar displays the page number in a text box, which users can change to move to another page. In addition, users can select the arrows to move one page up or down in the document. The toolbar also displays the relative page number location. In the image below, the default display indicates the user is on page 1 of 4 pages.
A more direct way of going to a page is to use the shortcut for the View > Page Navigation > Page menu item. On Windows, this shortcut is "Ctrl + Shift + N"; on Mac OS, it is "Cmd + Shift + N". This brings up a dialog box to go to a specific page number.
This example is shown with Adobe Acrobat Pro. There are other software tools that perform similar functions. See the list of other software tools in PDF Authoring Tools that Provide Accessibility Support.
The example document converted from Microsoft Word 2007 has 4 pages, numbered i, ii, iii, 1. The image below shows the Word document with lowercase Roman numeral page numbering specified In Word using:
Insert ribbon > Page number > Page Number Format
In this document, a new section has been created with page numbering beginning with Arabic numeral 1 on the fourth page of the document. The document was then converted to PDF from Word.
In Adobe Acrobat Pro, Select View > Navigation Panels > Pages. The following image shows the page thumbnails in the Pages panel and the Page Navigation toolbar. Both the thumbnails and the toolbar use Arabic page numbers.
To correct the page numbers:
Select the pages to be renumbered
Access the context menu for the selected pages and select Number Pages
In the Page Numbering dialog, select the lowercase Roman numeral style and the starting page (1 by default, which is correct in this case)
Select OK
The following image shows the Page Numbering dialog and selections.
Follow the same process to change the fourth page number to Arabic numeral 1.
The following image shows the correct page numbers for the 4 pages. Note that page iii is selected in the Pages panel and the Page Navigation toolbar shows iii in the text area. In addition, the relative location in the document is shown at the right of the toolbar: "(3 of 4)."
This example is shown in operation in the working example of specifying page numbers in a document converted from Word (Word file) and working example of specifying page numbers in a document converted from Word (PDF file).