4 lines
114 B
JavaScript
4 lines
114 B
JavaScript
|
function rem2px(rem) {
|
||
|
return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
|
||
|
}
|