Stop Firefox DPI Scaling (when Windows setting is at 125%)

后端 未结 5 989
死守一世寂寞
死守一世寂寞 2020-12-08 13:54

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

5条回答
  •  心在旅途
    2020-12-08 14:42

    I did this way, zoom works better than transform, it doesn't make fixed elements absolute:

    @media screen and (min-resolution: 120dpi) { 
    body {zoom: 0.8;}
    }
    

提交回复
热议问题