page-break-inside:避免Firefox和/或IE的等效 [英] page-break-inside:avoid equivalent for Firefox and/or IE
问题描述
我理解CSS page-break-inside:avoid
指令应该在打印HTML文档时防止在div中出现分页。通过搜索互联网,我发现它只支持Opera和IE8。有没有工作可以防止在Firefox(3.6)或IE版本小于8的分页?
I understand that the CSS page-break-inside:avoid
instruction is supposed to prevent a page break within a div when an HTML document is printed. Through searching the internet, I have found that it is only supported by Opera and IE8. Is there a work around that allows me to prevent page breaks in Firefox (3.6) or IE versions less than 8?
推荐答案
,我的答案是不可能,虽然如果任何人可以证明我错了,我会喜欢。
Sorry, my answer is "not possible", although I'd love it if anyone can prove me wrong.
我最近遇到了同样的问题,一个小的研究,我决定只是用
I've ran into the same problem lately, and after doing a little bit of research I decided to just go with
page-break-after: always;
每隔几个元素数量。
http://reference.sitepoint.com/css/page-break-inside
http:// reference .sitepoint.com / css / page-break-after
这篇关于page-break-inside:避免Firefox和/或IE的等效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!