Cross-browser support of `page-break-inside: avoid;`

前端 未结 3 1489
余生分开走
余生分开走 2020-12-11 03:20

I have a lot of divs 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

相关标签:
3条回答
  • 2020-12-11 03:53

    Without seeing the code I can only guess it is maybe something to do with the height or nesting of the divs you're trying to apply it to. Could even be the width as remember both Print Previews in IE and FF will have different viewport dimensions (from the normal browser viewport and each other), a few pixels out could completely change the display of it

    0 讨论(0)
  • 2020-12-11 03:57

    Webdevout.net is a great place to check browser CSS compatibility.

    For page-break-inside only IE8 and Opera 8+ are shown to support it

    0 讨论(0)
  • 2020-12-11 03:58

    Microsoft Word 2010 does not seem to respect this style attribute when importing from HTML (XHTML 1.0 transitional), i.e. a <div> element may be split.

    0 讨论(0)
提交回复
热议问题