gpt4 book ai didi

javascript - Firefox 不在打印弹出窗口中显示表格标题

转载 作者:行者123 更新时间:2023-11-29 20:42:41 26 4
gpt4 key购买 nike

我有一个带有打印表格的打印按钮的页面。现在在 Chrome 或 IE 中它工作正常但在 Firefox 中它不显示表标题。以下是 Chrome 和 Firefox 的一些屏幕截图。

在 Firefox 中:

In Firefox

在 Chrome 中:

In Chrome

最佳答案

Chrome 的默认样式可能与 FireFox 的不同,

您是否尝试过使用 print query在你的 CSS 中?

@media print {
table, table thead, table th {
display: block !important /* or any other desired display value */;
}
}

祝你好运。

关于javascript - Firefox 不在打印弹出窗口中显示表格标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55114017/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com