How can I count CSS page breaks for printed HTML?

前端 未结 5 788
臣服心动
臣服心动 2021-02-04 12:19

I am generating reports using HTML and I am using CSS to control the page breaking using page-break-after, etc. I have given the user the option to print multiple reports at onc

5条回答
  •  后悔当初
    2021-02-04 13:00

    The following snippet will produce; a print page break before each h2 on the page.

    extracted from here

    
    

提交回复
热议问题