【发布时间】:2015-10-01 01:37:44
【问题描述】:
我完全(我通过 Chrome 中的开发者工具更改了值)使用 font-size(单位 em)呈现的相同内容:
1.0
1.1
1.2
1.3
1.4
但是正如您在1.2 中看到的那样,两个块的对齐方式在 Chrome 中是不同的(在 Firefox 中也是如此)。您可以在here 和here 中看到它。
这怎么可能?
【问题讨论】:
-
它们在 chrome 和 firefox 中对我来说似乎是完全不同的字体大小,因为 chrome 对该元素的默认值为 16px,而在 firefox 中为 12px。
-
但我不是在比较 Chrome 和 Firefox。所有屏幕截图均来自 Chrome。我只是说
1.2em奇怪的行为发生在 Chrome 和 Firefox 中。