搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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