word另存为html页眉,从Microsoft Word打印HTML文件时添加页眉和页脚

博主面临一个问题,即如何在打印HTML文件时为Microsoft Word文档添加页眉和页脚,尤其是希望每一页都有不同的页眉和页脚。他们成功地通过CSS定义了页脚的位置,但在将HTML转换为Word文档后,发现页脚内容并未出现在页面底部。寻求解决方案以确保页眉和页脚能在Word的每一页正确显示。
摘要由CSDN通过智能技术生成

I was given a task of adding headers and footers to printable HTML files.

To be more clear :

I wish to be able to view the content of those files in Microsoft Word and to have a header and a footer displayed at each Word page. Hopefully, different headers and footers to each page.

Later on the pages would be printed, of course.

I do able to add headers and footers to a regular html document, simply by using commands as :

#footer {

position: fixed;

bottom: 0;

left: 0;

width: 100%;

}

After I defined a "footer" div tag in the html code with some text lines in it.

But it seems that when I open the file as a Word document those text lines would not go to the bottom of the current page.

How would it be possible to place those lines at the top / bottom of the Word page ? Of each page, actually, since I have several pages in the document.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值