Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

Print preview is not displaying my print stylesheet correctly

  • 1 trả lời
  • 1 gặp vấn đề này
  • 12 lượt xem
  • Trả lời mới nhất được viết bởi guigs

more options

I have an html page that is a set of tables with two columns, Field and Value. When printed, a css rule page-break-after: always; divides the tables into one table per page.

The issue is that firefox is only printing the first page table. The other pages are present, but none of the data actually shows. Instead, it just shows the headings (Field, Value) and one empty row.

Oddly, if I open the browser console and run media emulate print the correct styles are displayed, this issue only occurs in Print Preview, and when actually printed.

A simplified example can be viewed here, just view the page in print-preview and you will see that the second table's content is hidden: https://gistpreview.github.io/?eb94e2e59ae73047be5d263d94197349

In addition, images of the issue may be seen here: https://stackoverflow.com/questions/46772724/firefox-will-only-print-first-page-table

I have an html page that is a set of tables with two columns, Field and Value. When printed, a css rule page-break-after: always; divides the tables into one table per page. The issue is that firefox is only printing the first page table. The other pages are present, but none of the data actually shows. Instead, it just shows the headings (Field, Value) and one empty row. Oddly, if I open the browser console and run media emulate print the correct styles are displayed, this issue only occurs in Print Preview, and when actually printed. A simplified example can be viewed here, just view the page in print-preview and you will see that the second table's content is hidden: https://gistpreview.github.io/?eb94e2e59ae73047be5d263d94197349 In addition, images of the issue may be seen here: https://stackoverflow.com/questions/46772724/firefox-will-only-print-first-page-table

Được chỉnh sửa bởi roemhildtg vào

Tất cả các câu trả lời (1)

more options

Hi there, We filed a bug for you, please continue the troubleshooting here :-)

https://bugzilla.mozilla.org/show_bug.cgi?id=1409585