page-break-after does not work in Chrome

后端 未结 3 2055
轻奢々
轻奢々 2020-12-11 02:19

I have a problem with page-break-after in Google Chrome during printing. It seems that it\'s not working. I tried Firefox and it\'s ok there. My code is:

<
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-11 02:45

    Please note for page-break to work, div should not have any float!

    So if your div has say float:left , reset it for print saying: float: none and it will make page break work again.

提交回复
热议问题