blockly > utils > style > getComputedStyle
utils.style.getComputedStyle() 함수
노드의 계산된 스타일 값을 검색합니다. 요청된 속성이 SVG 속성이고 명시적으로 설정되지 않은 경우 (Firefox 및 webkit) 빈 문자열을 반환합니다.
클로저의 goog.style.getComputedStyle에서 복사됨
Signature:
export declare function getComputedStyle(element: Element, property: string): string;
매개변수
매개변수 | 유형 | 설명 |
---|---|---|
요소 | 요소 | 스타일을 가져올 요소입니다. |
속성 | string | 가져올 속성입니다 (카멜 표기법). |
반환:
string
스타일 값입니다.