问题描述
我几乎总是以比预设更大的字体浏览网页。使阅读变得更容易。
但有一段时间,我注意到有些网站不允许扩大字体,至少在Chrome上。例如,以下网站为例:
我很好奇,(a)至于Chrome为什么允许网站做到这一点,以及(b)如何做到这一点。
有人可以解释吗?
b)
-webkit-text-size-adjust
是罪魁祸首。另请参阅和 I almost always browse the web with a much bigger font size than default. Makes it much easier to read.
But once in a while I notice that some websites don't allow enlarging the font, at least on Chrome. Like this website for example:
http://en.support.wordpress.com/domains/map-existing-domain/
I am curious, both (a) as to why Chrome allows sites to do that and (b) as to how that is done.
Can someone explain?
a) God knows, because browser vendors love to implement things that are bound to get abused?
b) -webkit-text-size-adjust
is the culprit. See also on MDN and previous question
这篇关于有些网站如何禁止更改字体大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!