HTML中的表可以有“页脚”:
Your header goes here
Your footer goes herePage body in here -- as long as it needs to be
table-footer-group
Object is rendered as 07001. Table footer is always displayed
after all other rows and row groups,and before any bottom captions.
The footer is displayed on each page spanned by a table.
将表尾页组作为样式添加到TFOOT会导致它(在Internet Explorer中)打印在表所跨越的每个页面的底部:
tfoot { display: table-footer-group; }
但是如果IE9(候选版本)被置于标准模式:
然后TFOOT不再呈现在跨越表的每个页面的底部,而是仅在整个表的末尾.
我检查了the HTML spec以查看正确的行为是什么,并且它未定义!:
table-footer-group (In HTML: TFOOT)
Like ‘table-row-group’,but for visual
formatting,the row group is always
displayed after all other rows and row
groups and before any bottom captions.
Print user agents may repeat footer
rows on each page spanned by a table.
If a table contains multiple elements
with ‘display: table-footer-group’,
only the first is rendered as a
footer; the others are treated as if
they had ‘display: table-row-group’.
注意:强调增加了效果.
IE9标准模式中有没有办法让我选择在每个页面底部打印TFOOT?
更新一
有趣的是,table-footer-group是TFOOT元素的典型默认值,但在以前版本的IE中,您可以选择所需的行为:
>整个表的底部
>整个表格和每个中间页面的底部
选择包括风格.
更新二
现在我正在强迫Internet Explorer保持IE8标准模式:
也可以看看