table-header-group,table-footer-group属性在Chrome中不起作用

FUR*_*GIN 7 css pagination google-chrome header footer

这是我的代码.http://furkan.brove.net/syflm.php

打印时,它无法在Chrome中运行.我希望它在打印模式下将页眉和页脚放在每个页面上.此外,在每个浏览器中,最后一个页脚都是内容的底部.但我希望它成为页面的底部.

有什么方法可以解决我的问题吗?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
<meta name="robots" content="noindex, nofollow">
<meta name="googlebot" content="noindex">
<meta http-equiv="cache-control" content="no-cache">    
<meta http-equiv="X-UA-Compatible" content="IE=8" />

<title>Brove.NET ISO Yaz?l?m?</title>
<link rel="stylesheet" type="text/css" href="css/pagination.css" />
<style>
    #all thead { display: table-header-group; }
    #all tfoot { display: table-footer-group; }
    .header_table{ height:100px; }
    .footer_table{ height:100px; }
</style>
</head>

<body>
<table id="all">
   <thead><tr><td><table class="header_table"><tr><td>Your header goes here</td></tr></table></td></tr></thead>
   <tfoot><tr><td><table class="footer_table"><tr><td>Your footer goes here</td></tr></table></td></tr></tfoot>
   <tbody>
     <tr><td>
       Page body in here -- as long as it needs to be<br />
       <!-- i wrote this many -->
     </td></tr>
   </tbody>
</table>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

这是IE截图.在第二页,它将页眉和页脚放好.

在此输入图像描述

这是Firefox截图.它也在工作.

在此输入图像描述

但是在Chrome中它不起作用

在此输入图像描述

Nic*_*son 5

不幸的是,这是 Webkit 的一个已知问题。

这是 Chrome 问题跟踪器:http : //code.google.com/p/chromium/issues/detail? id= 24826

和 Webkit 问题跟踪器:https ://bugs.webkit.org/show_bug.cgi?id =17205

如果您想表明它对您很重要(我做到了),请在 Chrome 问题跟踪器上加星标。

  • 我认为这个答案已经过时了。然后我检查了链接。我希望我错了... (3认同)