我使用的是wordpress的underscores starter theme。Underscores font-size mixin
他们有这样的mixin我已经不知道它要怎样做。
// Rem output with px fallback
@mixin font-size($sizeValue: 1) {
font-size: ($sizeValue * 16) * 1px;
font-size: $sizeValue * 1rem;
}
有人可以解释这背后的数学吗?
如果我在px中给出字体大小,我该如何使用它?