Skip to content

KBE3D / KBCore / utils / getStyle

函数: getStyle()

getStyle(el: HTMLElement, style: string): string | null

返回元素上某个样式属性的值

参数

el

HTMLElement

指定的DOM元素

style

string

样式名称

返回

string | null

样式的值或null

KBE3D @3.0.0 Copyright © 2024-present KBE3D