html 요소에 적용된 스타일을 추출해야 하는 경우가 있습니다. 이럴 때 아주 간단한 Web API가 있습니다. Window.getComputedStyle() - MDN var style = window.getComputedStyle(element[, pseudoElt]); element 속성 값을 가져올 요소 psudoElt - optional 객체 선택 방법 브라우저 호환성 예제 const padding = window .getComputedStyle(elem) // [CSSStyleDeclaration] .getPropertyValue('padding') // '10px 0px 6px 4px' // or const padding = window.getComputedStyle(elem) // [CSS..