停用Chrome最小字体大小10px [英] Disable Chrome minimum font-size 10px

查看:244
本文介绍了停用Chrome最小字体大小10px的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到了

font-size:9px

但是它可以在Safari和Firefox中正确显示,但不能与Mac/Chrome(V32)一起显示.
左边是Chrome [坏]/右边是Safari [正确]

But it is displaying correctly in Safari and Firefox but not with Mac/Chrome (V32).
Left is chrome [bad] / Right is Safari [correct]

我可以在代码检查器中看到我的字体为9px,但chrome切换为10px:

I can see in the code inspector that my font is 9px but chrome switch to 10px :

我听说了chrome中的最小字体大小,并尝试通过以下样式禁用自动调整,但没有用.
有什么主意吗?

I heard about the minimum font size in chrome and tried to disable the auto adjustment by following style but did not work.
Any idea?

* {
    -webkit-text-size-adjust: none;
}

推荐答案

我只能告诉您为什么它不起作用,但这可能会帮助您寻找其他解决问题的方法.

i can only tell WHY it's not working but this might help you to go looking for a different way to solve your problem.

chrome不再支持-webkit-text-size-adjust. (更改列表在此处: http://trac.webkit.org/changeset/145168 ).随之而来的是野生动物园.在更新的Mac OS版本上,text-size-adjust也已经消失了.

from chrome version 28.0.1500.11 chrome doesn't support -webkit-text-size-adjust anymore. (changelist is here: http://trac.webkit.org/changeset/145168). and safari follows along. on newer mac os versions text-size-adjust is already gone too.

我也有问题,因为我已经在rem单元上建立了一个完整的网站,以使其不仅响应迅速而且完全灵活.这个工作非常好,但是突然之间一切都变得非常巨大.我正在为此寻求解决方案,但是如果有人有主意,我没想到我会非常感激.

I have problems with it as well, since i've built a whole website on rem units to make it not only responsive but totally flexible. this worked pretty nice but all of a sudden everything is huge now. i'm working hard on a solution for this, but if anyone has an idea i didn't think of i'd appreciate that very much.

一旦我找到解决方案,我就会回来告诉你.

as soon as i find a solution i'll come back to let you know.

这篇关于停用Chrome最小字体大小10px的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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