Which browsers support page break manipulation using CSS and the page-break-inside element?

前端 未结 7 1436
时光说笑
时光说笑 2020-12-15 21:31

I\'m trying to use the page-break-inside CSS directive, the class of which is to be attached to a div tag or a table tag (I think this may only work on block elements, in wh

7条回答
  •  甜味超标
    2020-12-15 22:00

    • Firefox does not support this as of 2010-11-30, and thus won't in Firefox 4.
    • IE8 does support page-break-inside: avoid - but when I tried this on IE9, it's not very successful at avoiding page-breaks (this may be a regression, or perhaps IE8 is also only capable of avoiding page breaks in very simple cases).
    • AFAIK it doesn't work in any webkit browser; certainly not in chrome.
    • It actually works in Opera, even on real sites.

提交回复
热议问题