对于"localhost",Chrome浏览器具有不同的缩放大小.与所有其他网站 [英] Chrome browser has different zoom size for "localhost" versus all other web-sites

查看:254
本文介绍了对于"localhost",Chrome浏览器具有不同的缩放大小.与所有其他网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Chrome中,本地主机"未响应全局缩放.

In Chrome, "localhost" is not responding to the global zoom.

在我的Chrome浏览器中,本地主机"提供的页面的缩放比例与所有其他网站不同.此外,使用设置"全局更改缩放百分比会影响除"localhost"以外的所有站点.有趣的是,即使"file://"也会响应全局缩放,但是当用作"localhost"时,同一组文件的行为也有所不同.

In my Chrome browser, a page served from "localhost" has a different zoom than all other web-sites. Furthermore, use of "settings" to globally change the zoom percentage affects all sites except not "localhost". Interestingly, even "file://" responds to the global zoom, but the same set of files acts differently when served as "localhost".

我读过一些有关Chrome切换的知识,所以原来的125%现在称为100%;有人可以确认吗?在我看来,本地主机"看起来是100%的老式版本(因此,无需额外的25%缩放).

I read something about Chrome switching things so what used to be 125% is now called 100%; can anyone confirm that? To me, it looks like "localhost" gets the old fashioned version of 100% (so, no extra 25% zoom).

我在Mac上使用Chrome.

I am using Chrome on a Mac.

顺便说一句,无论html部分中是否包含以下元",都会发生这种情况. "initial-scale"的值没有影响.

By the way, this happens regardless of whether the following "meta" is included in the html section. The value of "initial-scale" has no affect.

<meta name="viewport" content="width=device-width, initial-scale=1.00">

我的问题是:我可以更改"localhost"的缩放,以便(a)它与全局缩放同步响应,或者(b)"localhost"分别受到影响吗?

My question is: Can I change the zoom of "localhost" so that either (a) it responds in sync with the global zoom, or (b) "localhost" is affected individually?

推荐答案

我知道了.我的错误是我一直忽略了局部缩放的机会来获得全局缩放.

I figured it out. My mistake was that I had been ignoring a local zoom opportunity to get at the global zoom.

我在Chrome中进行了以下调整;设置全局缩放级别:
(3点菜单)->设置->外观->页面缩放

I was doing the following adjustment in Chrome; this sets the global zoom level:
(3 dot menu) -> Settings -> Appearance -> Page Zoom

当我做以下简单的事情时,问题就消失了;设置仅针对当前站点的缩放比例: (三点菜单)->缩放

The problem went away when I did the following simple thing; which sets zoom just for the current site: (3 dot menu) -> Zoom

显然,几个月或几年前,我已在"localhost"上使用了该控件,并且该值一直持续到现在.显然,以本地"方式更改其缩放"级别的网站随后将不会对全局"级别的更改做出反应.

Apparently, I had used that control on "localhost" months or years ago, and the value persisted until now. Apparently, a site that has had its "zoom" level changed in this "local" way will subsequently not react to changes at the "global" level.

这篇关于对于"localhost",Chrome浏览器具有不同的缩放大小.与所有其他网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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