我阅读了适用于 Google Chrome 的 HTML 元素的默认样式,可用 here .我发现了这个:
p {
display: block;
-webkit-margin-before: 1__qem;
-webkit-margin-after: 1__qem;
-webkit-margin-start: 0;
-webkit-margin-end: 0;
}
1__qem
是什么意思?
最佳答案
来自 WebKit 来源:CSSPrimitiveValue.h
// This value (__qem) is used to handle quirky margins in reflow roots
// (body, td, and th) like WinIE.
// The basic idea is that a stylesheet can use the value __qem (for quirky em)
// instead of em.
// When the quirky value is used, if you're in quirks mode, the margin will
// collapse away inside a table cell.
关于 Quirks 模式的更多信息:http://en.wikipedia.org/wiki/Quirks_mode
现代网站永远不应该处于 Quirks 模式,因此您可以安全地假设它与 em
的所有意图和目的相同。
关于css - 1__qem 是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7448673/