我有一个网络应用程序。我在该应用上使用 Chrome 和 Opera。
我想将页码以特定的 td
形式放入打印页面预览中,如下所示:
<thead>
<tr>
<td>thead data</td>
<td>thead data</td>
<td>page number of pages numbers</td>
</tr>
</thead>
<tbody>
<tr>
<td>tbody data</td>
<td>tbody data</td>
<td>tbody data</td>
</tr>
</tbody>
在 Firefox 中我尝试了 this answer在 StackOverflow 上。
它仅在 Firefox 中有效。
但我的问题是我想要在 Chrome 和 Opera 中使用它。
我尝试了很多方法,但没有任何效果。
最佳答案
要打印页码,您必须设置 Chrome 和 Opera 打印设置。
点击Ctrl + P,将会出现一个弹出窗口。单击更多设置按钮并选中页眉和页脚,它将显示页码。
关于html - 如何在 Chrome 和 Opera 中打印页码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48377806/