page-break-inside:avoid equivalent for Firefox and/or IE

前端 未结 4 1389
旧时难觅i
旧时难觅i 2020-12-20 11:53

I understand that the CSS page-break-inside:avoid instruction is supposed to prevent a page break within a div when an HTML document is printed. Through searchi

4条回答
  •  清酒与你
    2020-12-20 12:40

    Try using white-space:nowrap instead. This should stop text from breaking inside the element, at least while on screen. I'm not sure how it translates to print media, but it's worth a try.

    More info: http://www.blooberry.com/indexdot/css/properties/text/whitespace.htm

提交回复
热议问题