how to set zoom level using css

后端 未结 4 1810
-上瘾入骨i
-上瘾入骨i 2021-01-02 04:16

I have been developing my webapp with a certain zoom level on firefox that I set initially (using ctrl+wheel). Now when tested on a different PC on firefox, the default 100%

4条回答
  •  长情又很酷
    2021-01-02 04:59

    You can set the zoom using the CSS property zoom. It's an old IE thing which is also supported in Chrome, and Safari.

    .zoom
    {
        zoom: 120%;
    }
    

    However, this probably shouldn't be used on live sites...

提交回复
热议问题