歌剧只打印几页

发布于 2024-12-16 11:39:34 字数 300 浏览 1 评论 0原文

我想从网页打印许多页面,但 Opera 只打印其中的几页。

问题似乎出在块的 css 样式上。

如果某些块具有 position:absolute 而其他块具有 float,则并非所有页面都会打印。 如果我删除此属性或设置 * {min-height:100px;},则所有页面都会打印。看起来 Opera 计算打印文档的高度是错误的。

Windows 和 Opera 11.51 或 Opera 12 alpha linux。在 MacOS 上一切正常。

I want to print many pages from a web page, but opera prints only a few of them.

The problem seems to be with the css style of blocks.

If some blocks have position:absolute and others have float, not all pages print.
If I drop this property or set * {min-height:100px;}, all pages print. It look like Opera calculates the height of printed document wrong.

Opera 11.51 or Opera 12 alpha on windows & linux. On MacOS everything works fine.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你列表最软的妹 2024-12-23 11:39:34

这很可能是 Opera 的错误,但如果没有涉及到的页面,我们就无法找到答案。

但是,如果设置最小高度可以解决该问题,您可以将其设置为仅打印,如下所示:

@media print {
  * {min-height:100px;}
}

It could well be an Opera bug, but without the page involved there is no way for us to find out.

However if setting a minimum height works around the issue you could just set it for printing only like this:

@media print {
  * {min-height:100px;}
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文