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

搜尋 Mozilla 技術支援網站

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

了解更多

Website Scaling Problem, Windows 10, Everything Is Big.

more options

Is there a way from within a website's code to turn off scaling with Windows 10 for 4k resoutions?

I know I can turn it off manually, but 99% of the users won't do that and it throws the resolution responsiveness of websites off. Not sure why you guys don't just turn it off by default in your browsers.

Is there a way from within a website's code to turn off scaling with Windows 10 for 4k resoutions? I know I can turn it off manually, but 99% of the users won't do that and it throws the resolution responsiveness of websites off. Not sure why you guys don't just turn it off by default in your browsers.

被選擇的解決方法

Can you share a URL of a page demonstrating the issue? (I don't have a 4K monitor, though, hmm.)

If you are using @media queries or JavaScript to adapt the layout, you should explore how Firefox reports screen resolution and window size: it changes with the user's zoom level. You can play with this page to see what I mean:

https://www.jeffersonscher.com/res/resolution.php

By default, Firefox follows the text size / scaling setting at the Windows level. On a high resolution small panel display, that may default to 125% - 150%. I don't know the typical defaults for a 4K panel. What is yours set at? You can get a rough idea from the above page if you reset page zoom to 100%.

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

所有回覆 (7)

more options

This is a Windows support help not a FF help. You need to contact Windows support for this issue. FF has no control what Windows does and what it controls. The user needs to know about W10 and how to control it not FF.

more options

WestEnd said

This is a Windows support help not a FF help. You need to contact Windows support for this issue. FF has no control what Windows does and what it controls. The user needs to know about W10 and how to control it not FF.

Either you misunderstood, or you don't know what you're talking about. Software like FF is built to run on Windows and abide by its rules. Same with a website, it is built to abide by the browser's rules. I'm looking for a solution to place in the code of the website that corrects that which FF fails to do. This is code that will disable the browser from taking the scaling ratio that Windows has. Does this makes sense?

So this is very much related to FF.

由 nicoSF 於 修改

more options

Scaling is a Windows issue. You need to know that upfront here. Windows controls scaling and any other programs follow M$ rules. So don't conflate Scaling a FF since Mozilla has no access to Windows Kernels or controls them.

more options

選擇的解決方法

Can you share a URL of a page demonstrating the issue? (I don't have a 4K monitor, though, hmm.)

If you are using @media queries or JavaScript to adapt the layout, you should explore how Firefox reports screen resolution and window size: it changes with the user's zoom level. You can play with this page to see what I mean:

https://www.jeffersonscher.com/res/resolution.php

By default, Firefox follows the text size / scaling setting at the Windows level. On a high resolution small panel display, that may default to 125% - 150%. I don't know the typical defaults for a 4K panel. What is yours set at? You can get a rough idea from the above page if you reset page zoom to 100%.

more options

I figured it out via java. Thanks!

more options

nicoSF said

I figured it out via java. Thanks!

How did you solve this issue? :)

I'm battling with the same problem.

more options

Hi Nedi21, maybe start a new question if you don't get a quick answer here. Since this is already marked solved, new posts may not get enough attention on this thread.

https://support.mozilla.org/questions/new/desktop/fix-problems