»
051. Calculating 1rem Pixel Values in JS
function getComputed1RemPxes(){
return parseFloat(getComputedStyle(document.documentElement).fontSize);
}
关键函数:getComputedStyle,关键属性:fontSize
————www.v-signon.com学习者共勉