歌剧只打印几页
我想从网页打印许多页面,但 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这很可能是 Opera 的错误,但如果没有涉及到的页面,我们就无法找到答案。
但是,如果设置最小高度可以解决该问题,您可以将其设置为仅打印,如下所示:
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: