To update on above answer by vencedor and remove the extra empty character encoding added to your header/footer images/text you can do something like this:
xmlns:o='urn:schemas-microsoft-com:office:office'
xmlns:w='urn:schemas-microsoft-com:office:word'
xmlns='http://www.w3.org/TR/REC-html40'>
body {
font-family: "Calibri", "Verdana","HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
font-size:12pt;
}
pageBreak {
clear:all;
page-break-before:always;
mso-special-character:line-break;
}
Something page 1
Something page 2
|
|
This now includes full css components for header and footer segments.
The trick that actually removes the extra encoding is declaring yet another table within the MsoFooter and MsoHeader sections.
本文介绍了一种方法来解决Word文档中头部和尾部图像或文本出现额外字符编码的问题。通过在页眉和页脚部分声明额外的表格,并使用完整的CSS组件,可以有效地移除这些不必要的字符编码。
4091

被折叠的 条评论
为什么被折叠?



