搜尋 Mozilla 技術支援網站

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

Learn More

Firefox showing an overflow scrollbar when there is no overflow

  • 1 回覆
  • 1 有這個問題
  • 237 次檢視
  • 最近回覆由 Eivind

more options

Here is a fiddle showing the problem: https://jsfiddle.net/hefczx3a/12/

Even though all the elements are the same dimension with no margins/padding. Firefox displays scrollbars... On Chrome it is displayed as intended, covering the viewport without any scrollbars.

Is this is Firefox bug?

被選擇的解決方法

Okey... changing the <canvas> element display property from 'inline' to 'block' solved the problem. But why?

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

所有回覆 (1)

more options

選擇的解決方法

Okey... changing the <canvas> element display property from 'inline' to 'block' solved the problem. But why?