【发布时间】:2021-11-16 14:46:11
【问题描述】:
我正在生成一个带有 html 的 .doc,我希望页脚只从第二页开始出现,有人知道该怎么做吗?我在这里看到了一些关于这个问题的答案,但我仍然不明白它在代码中的外观。
<head>
<style type="text/css" media="print">
@page Section1 {
size:8.3in 11.7in;
mso-footer:f1;
mso-header:h1;
margin:0.0in 0.6in 0.0in 0.6in;
mso-header-margin:0.0in;
mso-footer-margin:0.0in;
}
div.Section1{
page:Section1;
}
p.MsoFooter, li.MsoFooter, div.MsoFooter {
mso-pagination:widow-orphan;
}
<body>
<!-- Content -->
<div class="Section1">
<!-- Cover Page 1 -->
<div class="coverP">
Cover page text goes here
</div>
<br clear="all" style="page-break-before:always" />
<!-- Page 2 Starts -->
<div>
Page 2 goes here with footer (pg#2 and logo)
</div>
<br clear="all" style="page-break-before:always" />
<!-- Page 3 Starts -->
<div>
page 3 go here with footer (pg#2 and logo)
</div>
<!---------- HEADER AND FOOTER SECTIONS --------------->
<br clear="all" style="page-break-before:always" />
<div style="mso-element:header" id="h1">
<table>...</table>
</div>
<div style="mso-element:footer" id="f1" >
<table>...</table>
</div>
</body>
</html>```
told to configure ```mso-title-page: yes; ``` but where? And they also said to replace ```mso-``` with ``` mso-first-``` but again where and how? if anyone knows how to give me a light, I would appreciate it, or even send me the link to the documentation...
【问题讨论】:
-
这里是否暗示“第 2 页”将始终从屏幕开始?