停止Firefox DPI缩放(当Windows设置为125%时) [英] Stop Firefox DPI Scaling (when Windows setting is at 125%)

查看:1953
本文介绍了停止Firefox DPI缩放(当Windows设置为125%时)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



这是因为我在Windows中的DPI是Windows操作系统,设置为125%,Firefox会检测到这一点,并相应地调整每个网页。



但是,我的网页并不意味着以这样的缩放级别查看,不得不显示那么大,因此它看起来模糊/像素化。



现在,这不会影响大多数人 - 因为他们的DPI将在100%在Windows。



我已经搜索并找到解决方案,因为用户禁用这个功能 - 但我想要能够从我的网站禁用它 - 所以它不会错误的用户在第一。



例如一个帖子说:



1)在地址栏中键入 about:config

2)搜索 layout.css.devPixelsPerPx

3)更改 layout.css.devPixelsPerPx -1.0 1.0



这不是我想要的。
是否有任何方法禁用CSS / HTML /任何东西?



谢谢。



导航到 about:config

code>。 (在任何警告中点击接受,告诉您小心高级功能)



搜索 layout.css.devPixelsPerPx 并将其值更改为 1.0 ,您的问题应该解决。



https://www.mozilla.org/en-US/firefox/22.0/releasenotes/\"> Firefox 22 。


I'm currently making a webpage and testing it in chrome works fine, but in Firefox - it is zoomed in.

This is because my DPI in Windows is set to 125%, and Firefox detects this, and adjusts every webpage accordingly.

However, my webpage is not meant to be viewed at such a zoom level, the images aren't made to be displayed that big, and hence it looked blurred/pixelated. The general layout of the page is messed up too, because everything is so big.

Now, this doesn't affect most people - as their DPI would be at 100% in Windows. However, I want it to be the same on all browsers.

I've searched and have found solutions as for the user to disable this "feature" - but I want to be able to disable it from my website - so it doesn't look wrong to the user in the first place.

e.g. one post says:

1) Type about:config in address bar
2) search for layout.css.devPixelsPerPx
3) change value of layout.css.devPixelsPerPx from -1.0 to 1.0

But that isn't what I'm looking for. Is there any way to disable this from CSS/HTML/anything?

Thanks.

解决方案

This frustrated me too, but luckily there is a solution.

Navigate to about:config. (Click accept on any warnings telling you to be careful with advanced features)

Search for layout.css.devPixelsPerPx and change its value to 1.0 and your issue should be fixed.

It was something implemented in Firefox 22.

这篇关于停止Firefox DPI缩放(当Windows设置为125%时)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆