有没有人提出一个技巧来防止在打印时分解表行(TR)? [英] Has anyone come up yet with a trick to prevent breaking up table rows(TR) while printing?

查看:79
本文介绍了有没有人提出一个技巧来防止在打印时分解表行(TR)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在阅读很多关于page-break-

里面的存档帖子:避免不支持IE5,IE6 IE55,IE7和Firefox

(Mozilla),这会产生一个非常令人不愉快的打印输出,其中包含

损坏的表行。


我想知道经过这么多年的讨论后,是否所有人都出现了

,其中有一些技巧可能使用了page-break-before的组合,

" page-break-after"或div属性会阻止

的情况。


我们的客户使用各种环境的各种浏览器,所以它是

不太可能假脱机PDF或其他一些时髦的格式可以帮助我们。


我们真的想确定HTML / DHTML / JavaScript解决方案。

也许甚至不使用表格,但div或段落元素 -

肯定不会破坏页面。

I have been reading a lot of archived threads about "page-break-
inside: avoid" not supported by IE5, IE6 IE55, IE7 and Firefox
(Mozilla), which creates a really unpleasant-looking printout with
broken table rows.

I wonder if after all these years in discussion anyone had come up
with a trick using maybe some combination of "page-break-before",
"page-break-after" or div properties that would prevent the
situation.

Our clients use various browsers with various environments, so it''s
unlikely that spooling a PDF or some other funky format could help us.

We would really like to determine the HTML/DHTML/JavaScript solution.
Maybe even not using tables, but div or paragraph elements - something
that won''t be page-broken for sure.

推荐答案

ar****@inbox.com 写道:

我一直在阅读很多关于page-break-

里面的存档线程:避免不支持IE5,IE6 IE55,IE7和Firefox

(Mozilla),它创建了一个非常令人不愉快的打印输出,其中包含

损坏的表行。
I have been reading a lot of archived threads about "page-break-
inside: avoid" not supported by IE5, IE6 IE55, IE7 and Firefox
(Mozilla), which creates a really unpleasant-looking printout with
broken table rows.



FWIW,Mozilla还不支持分页 - *:完全避免; Opera和

Safari打印它们(除了IE和FF之外还有其他浏览器,你知道)。

FWIW, Mozilla doesn''t yet support page-break-*: avoid at all; Opera and
Safari print them (there ARE other browsers than IE & FF, you know).


我想知道是否毕竟这些多年来讨论过任何人都出现了

,其中有一些技巧可能使用了page-break-before,

" page-break-after"或div属性会阻止

的情况。
I wonder if after all these years in discussion anyone had come up
with a trick using maybe some combination of "page-break-before",
"page-break-after" or div properties that would prevent the
situation.



最简单的技巧是切换到支持

属性的浏览器。虽然我自己是一名FF用户,但Opera和Safari在大多数领域都有更好的CSS支持,包括打印CSS支持。


-

注意上面代码中的错误;我只是证明它是正确的,而不是

尝试过它。 - Donald E. Knuth

The easiest trick is to switch to a browser that supports the
properties. Although I am a FF user myself, Opera and Safari have better
CSS support in most areas, including printing CSS support.

--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth


最简单的技巧是切换到支持
The easiest trick is to switch to a browser that supports the

属性的浏览器。虽然我自己是一名FF用户,但Opera和Safari在大多数领域都有更好的CSS支持,包括打印CSS支持。
properties. Although I am a FF user myself, Opera and Safari have better
CSS support in most areas, including printing CSS support.



我们的用户更有可能切换到另一个网站,比我们让他们更换浏览器的b $ b为了正确打印我们的

内容,我很害怕。


It''s much more likely that our users will switch to another web site,
than we get them to change browsers for the sake of just printing our
content properly, I''m afraid.


周四,2008年7月17日21:25:15来自约书亚的格林威治标准时间Cranmer< Pidgeot18

@ verizon.invalid>:
Thu, 17 Jul 2008 21:25:15 GMT from Joshua Cranmer <Pidgeot18
@verizon.invalid>:

最简单的技巧是切换到支持
的浏览器
属性。虽然我自己是一名FF用户,但Opera和Safari在大多数领域都有更好的CSS支持,包括打印CSS支持。
The easiest trick is to switch to a browser that supports the
properties. Although I am a FF user myself, Opera and Safari have better
CSS support in most areas, including printing CSS support.



不仅仅是CSS - Mozilla 1.7有一个令人讨厌的习惯,即在页面上打破图像

,而FF 2仍然存在。


-

Stan Brown,Oak Road Systems,美国纽约州汤普金斯县
http://OakRoadSystems.com/

HTML 4.01规范: http://www.w3.org/TR/html401/

验证者: http://validator.w3.org/

CSS 2.1规范: http://www.w3.org/TR/CSS21/

验证人: http://jigsaw.w3.org/css-验证者/

为什么我们不能帮助你:
http://diveintomark.org/archives/200..._wont_help_you

Not just CSS -- Mozilla 1.7 had the nasty habit of breaking images
across pages, and FF 2 still does.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won''t Help You:
http://diveintomark.org/archives/200..._wont_help_you


这篇关于有没有人提出一个技巧来防止在打印时分解表行(TR)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆