Skip to content

Home > sculp-js > getStyle

getStyle() function

获取元素样式

Signature:

typescript
export declare function getStyle(el: HTMLElement, key: string): string;

Parameters

Parameter

Type

Description

el

HTMLElement

元素

key

string

Returns:

string

{string}

Released under the MIT License.