為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

print only first page

more options

When printing a page with many long tables, FF prints only the first page. I already removed all of my add-ons and followed the printing troubleshooting.

when in emulate print mode (shift + f2, media emulate print) everything works fine, but i get the same unwanted result if i run a print preview. Also happens if i switch the orientation to landscape.

thanks for helping me out.

When printing a page with many long tables, FF prints only the first page. I already removed all of my add-ons and followed the printing troubleshooting. when in emulate print mode (shift + f2, media emulate print) everything works fine, but i get the same unwanted result if i run a print preview. Also happens if i switch the orientation to landscape. thanks for helping me out.

被選擇的解決方法

federico.prato said

when in emulate print mode (shift + f2, media emulate print) everything works fine, but i get the same unwanted result if i run a print preview.

There are some combinations of style rules that Firefox handles perfectly fine when it doesn't need to break pages, but which do not break correctly at print time. I wish I could give you a list, but that would require hours of research.

The ones that leap to mind:

  • display: flex
  • display: inline-block on tall elements
  • display: table on elements that are not a table
  • display: table-cell on elements that are not a td
  • overflow/overflow-y rules

Also, Firefox cannot paginate the fieldset tag.

從原來的回覆中察看解決方案 👍 0

所有回覆 (6)

more options

What kinda printer are you printing to and did you load the print drivers? Sites don't always print what you see and some sites block printing their site this is something FF can't fix or do anything about. Print Preview is just that a preview but no guarantee that's how it will look like. So unless you can give the link for others to verify what your saying then this would be a site issue with printing and there nothing from FF that it can do.

more options

mhm.. Sorry but then other browsers' print preview show me the whole content just because they work different? I'll try real printing then, let's see.

Unfortunately i cannot give you a link as this is a site i'm still working on :).

thanks

more options

SAFE MODE

In Firefox Safe mode these changes are effective:

  • all extensions are disabled (about:addons)
  • default theme is used (no persona)
  • userChrome.css and userContent.css are ignored (chrome folder)
  • default toolbar layout is used (file: localstore-safe.rdf)
  • Javascript JIT compilers are disabled (prefs: javascript.options.*jit)
  • hardware acceleration is disabled (Options > Advanced > General)
  • plugins are not affected
  • preferences are not affected

TEST if works fine then issue is Extensions or is the Profile

Please Refresh but do this 1st: Delete your Cookies and Cache and TEST.

then

TEST....... If no issues then Extensions which need to be added back in 1 at a time and tested ..... Or it is your Profile : Make a new one and test ...:

If is your Profile :

Note: Any customization will revert back to default, you will also need to reinstall Extensions.

Please let us know if this solved your issue or if need further assistance.

more options

選擇的解決方法

federico.prato said

when in emulate print mode (shift + f2, media emulate print) everything works fine, but i get the same unwanted result if i run a print preview.

There are some combinations of style rules that Firefox handles perfectly fine when it doesn't need to break pages, but which do not break correctly at print time. I wish I could give you a list, but that would require hours of research.

The ones that leap to mind:

  • display: flex
  • display: inline-block on tall elements
  • display: table on elements that are not a table
  • display: table-cell on elements that are not a td
  • overflow/overflow-y rules

Also, Firefox cannot paginate the fieldset tag.

more options

tried printing for real when in safe mode and had the same problem.

I guess i'll have to look for CSS rules then.

thanks

more options

The problem was indeed some display:flex around the page. Set display:block in printing stylesheets and profit.