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

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

    As a bit more information further to Eamon Nerbonne's answer on the IE rendering (IE8+), you need to make sure the browser is in standards mode. This article on MSDN shows what is necessary - including a meta tag in your html to force the issue:

    
    

    Feels kludgy, but there you have it... seems to work more consistently.

提交回复
热议问题