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

前端 未结 7 1411
时光说笑
时光说笑 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:10

    From preliminary searches, it's hard to find up-to-date statistics on browser support for this, but it seems that Firefox 4beta6 supports it and Chrome 7 does not. Chrome also breaks pages halfway through a line of text, so that part of the text appears on one page and part appears on the next. Uncharacteristic lack of attention to detail, but I guess neither Google nor Apple care about printing things.

    Firefox 4 also adds some nice headers and footers to your prints with url, page title, site title, number of pages, and time. Nice.

提交回复
热议问题