print stylesheet, one page prints and cuts off remaining text

后端 未结 12 1034
攒了一身酷
攒了一身酷 2020-12-24 00:41

I\'m working on a printable list of events, the printer prints one page fine, but cuts off some of the text on the bottom, then it print a second blank page

I\'ve tr

12条回答
  •  别那么骄傲
    2020-12-24 01:40

    I just ran into this issue and have been scouring the internet for a solution that fit my specific needs. In my case I had about 7 tables nested in a larger table. The only way I was able to get the entire web page to print and display in print preview correctly was to use page breaks. Page breaks are CSS properties that allow you to specify and/or force page breaks by attaching the property to block elements.

    https://developer.mozilla.org/en-US/docs/Web/CSS/page-break-before

提交回复
热议问题