【发布时间】:2012-02-17 12:49:31
【问题描述】:
这是我的代码。 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>
这是 IE 截图。在第二页中,它很好地放置了页眉和页脚。
这是火狐的截图。它也有效。
但在 chrome 中它不起作用
【问题讨论】:
-
你能给一个链接到它在哪里测试吗?或者截图?
-
我现在编辑了准备截图的代码
-
这些显示值难道不是
thead和tfoot的默认值吗?您根本不需要设置它们。 -
我编辑了代码。我没完全理解你
标签: css google-chrome header pagination footer