Answer the question
In order to leave comments, you need to log in
Why mystique in window.getComputedStyle()?
I can't understand why this is happening. My code is simple.
var styles = window.getComputedStyle(element[0], null);
console.log(styles);
console.log(styles['fontSize']);
{
'background': '0',
'fontSize': '15px',
'etc': '...'
}
11px
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question