我使用它们作为字体的单位,与body {字体大小:12 in }(一个绝对值,可以是20 in或14 in.)
这很好,但是如果我有多个嵌套的东西,比如
h4{
font-size:2em;
}
h4 span{
1.6em;
}
.parent_elementofthespan span.superspan{
font-size:1.3em;
}
.basecamp3rdpartyclass h4.span{
font-size:1.9!important;
...例如,在计算.parent_elementofthespan span.superspan的实际绝对字体大小时,事情变得相当复杂。
除了手动计算外,有没有可能“看到”工具中的绝对字体大小?
发布于 2017-11-08 10:49:54
在Chrome开发工具中
F12 >Element> Computed >字体大小
将显示以像素为单位的值。
发布于 2017-11-08 15:29:46
https://stackoverflow.com/questions/47177681
复制相似问题