简体   繁体   English

调整 Chrome 和 Edge 缩放

[英]Adjusting Chrome and Edge zoom

I realized a little web site, when I run it on Mozzilla it is perfect, but when I run it on Chrome or Edge all pages are too big and I must to manually reduce the zoom for fix the problem.我意识到一个小小的 web 站点,当我在 Mozzilla 上运行它时它是完美的,但是当我在 Chrome 或 Edge 上运行它时,所有页面都太大了,我必须手动减小缩放以解决问题。 I know that the various browser use different engine, but I don't know what to do now, how can I reduce the zoom in the others browser?我知道各种浏览器使用不同的引擎,但我现在不知道该怎么办,如何减少其他浏览器的缩放?

You could achieve the goal using zoom CSS property.您可以使用zoom CSS 属性来实现目标。 The property is not supported in Firefox , so you could use it to only affect Chrome and Edge. Firefox 不支持该属性,因此您可以使用它仅影响 Chrome 和 Edge。 You could check the code below:您可以检查以下代码:

 div { margin-bottom: 16px; }.zoom { zoom: 75%; }
 <div>Normal</div> <div class="zoom">Zoom for Chrome, Edge, not for Firefox</div>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM