搜尋 Mozilla 技術支援網站

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

Learn More

Printing leaves out text or is overlaid on other text

  • 5 回覆
  • 1 有這個問題
  • 5 次檢視
  • 最近回覆由 777bb

more options

This is a problem unique to Firefox. Even a page that's been supposedly formatted for printing turns out with missing text or text overlaid on other text. And it's a problem that has been occurring over many iterations of the Firefox browser.

Here's an example that prints fine in Edge and Chrome: https://www.allrecipes.com/recipe/220867/falafels-with-yogurt-dill-sauce/?printview

What is the problem, and why can't/won't Firefox fix it?

被選擇的解決方法

The fix has been added to "Nightly", the future Firefox 95. Assuming no negative side effects are discovered in testing, we can hope that it comes to Firefox 94 next month.

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

所有回覆 (5)

more options

有幫助嗎?

more options

Hi 777bb, the site puts the ingredient list in a tag called a <fieldset> which is intended for use in forms. Some time ago, the bug with splitting a <fieldset> over multiple pages was solved, but it seems that in this layout, there is a similar bug. What happens is, the ingredient list is treated as "unbreakable," so if the space is not enough, it gets pushed to the next page. However, in this case, the recipe seems to have some kind of maximum height set on it, so the ingredient list runs over the footer and disappears.

None of this is obvious from viewing the page, you would need to Inspect the HTML to learn or hack around this, and it's easier to use a different browser in this case.

Meanwhile, I filed a bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1735375

(Note: please do not add comments to the bug unless they have a question for you.)

有幫助嗎?

more options

Thanks jscher2000 for finding the source of the problem and filing the bug report. I really do hope they'll bother to make the necessary fixes. (And I don't know why it's been going on for years and years—I'd guess I'm hardly the only one experiencing this.) Though there isn't really anything I can practically do about the Firefox problem, it's somehow satisfying to hear why it's printing the way it does.

有幫助嗎?

more options

選擇的解決方法

The fix has been added to "Nightly", the future Firefox 95. Assuming no negative side effects are discovered in testing, we can hope that it comes to Firefox 94 next month.

有幫助嗎?

more options

jscher2000, that's great! Thanks again.

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題