标题页脚

扫码查看
本文介绍了标题页脚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每个网页都包含页眉和页脚。如果网页包含更多

,那么我想在一个页面上打印每页的页眉和页脚。但是

标题只打印在最后一页的第一页和页脚上。怎么办

这个?我怎样才能知道需要多少纸?

each web-page contains header and footer. if the web-page contains more
then one page i want to print its header and footer to each page. but
header is only printed on first page and footer on last page. how to do
this? how can i find out how many paper is needed?

推荐答案



从理论上讲,我认为这个位置:固定的印刷媒体样式表将是b
。在实践中没有什么能支持这个。

In theory, I think that position: fixed for a print media style sheet will
do it. In practise nothing supports this.



你不能。你不知道字体大小是什么,纸张大小是多少,或者是什么样的边距。


-

David Dorward< http://blog.dorward.me.uk/<tp://dorward.me.uk/>

首页是〜 /.bashrc是

You can''t. You don''t know what the font size will be, what the paper size
will be, or what the margins will be.

--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is




从理论上讲,我认为这个位置:固定的印刷媒体样式表

会做到这一点。在实践中,没有什


In theory, I think that position: fixed for a print media style sheet
will do it. In practise nothing supports this.



这是正确的。来自

< http://www.w3.org/TR/CSS21/visuren.html#choose-position>:


" in the打印介质类型的情况下,每个页面上都会显示该框,

并且相对于页面框是固定的


我不是知道任何支持此功能的浏览器。


在CSS3中,您可以随心所欲地使用它们,例如页码

的页脚。见< http://www.w3.org/TR/css-print/#s.8.4>。但它确实需要一段时间才能真正使用它。


-

Garmt de Vries-Uiterweerd

That''s correct. From
<http://www.w3.org/TR/CSS21/visuren.html#choose-position>:

"In the case of the print media type, the box is rendered on every page,
and is fixed with respect to the page box"

I don''t know of any browser that supports this.

In CSS3, you will have fancier stuff at your disposal, like page numbers
in running footers. See <http://www.w3.org/TR/css-print/#s.8.4>. But it
will be some time before you can really use this.

--
Garmt de Vries-Uiterweerd



理论上,我认为这个位置:固定的印刷媒体样式表将会这样做。在实践中,没有什


In theory, I think that position: fixed for a print media style sheet will
do it. In practise nothing supports this.



Opera支持这个


-

Spartanicus

Opera supports this

--
Spartanicus


这篇关于标题页脚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-28 08:41
查看更多