跨页面支持`page-break-inside:avoid;` [英] Cross-browser support of `page-break-inside: avoid;`
问题描述
我在其中有不同数量内容的网页上有很多 div
。我试图使用 page-break-inside:avoid;
,以便每个div部分不会超过2页。
I have a lot of div
s on a page with variable amounts of content in them. I am trying to use page-break-inside: avoid;
so that each div section is not broken over 2 pages.
它在Firefox中可用,但不能在IE8中使用。
It is working in Firefox but not IE8.
>
I have this in my CSS print file
.page-break-inside-avoid { page-break-inside: avoid; }
和我的div像< div class = page-break-inside-avoid>
IE8现在应该支持。不是吗?
IE8 is supposed to support this now. Isn't it?
我做错了什么?任何人解决这个问题?
Am I doing something wrong? Anyone solved this issue? Or had any experience with it?
任何帮助将是巨大的。
感谢很多
richard
thanks a lot richard
推荐答案
Webdevout.net是一个检查浏览器CSS兼容性的好地方。
Webdevout.net is a great place to check browser CSS compatibility.
page-break-inside
只显示IE8和Opera 8+
For page-break-inside
only IE8 and Opera 8+ are shown to support it
这篇关于跨页面支持`page-break-inside:avoid;`的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!