css - 1__qem 是什么意思?

标签 css google-chrome webkit

我阅读了适用于 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/

相关文章:

javascript - 在 javascript 中调用原生的 swift 函数

javascript - 如何在 html 中呈现 1 行和 2 列?

css - float div 中的绝对定位图像

html - 取id时如何套用css样式?

javascript - 谷歌浏览器扩展中的 JS 模板( list v2)

javascript - this.dataset 现在可以在 Chrome 下运行,FF 也会支持它吗?

c++ - 未知模块 QT : webkit

css - 模态主体中的 radio 到 slider 无法正确显示

javascript - 如何在 chrome 控制台中使用 let 等 ES6 语法?

google-chrome - Chrome 未报告 CSP 违规行为