getComputedStyleProperty()
介绍
Element 接口的 getComputedStyleProperty() 方法返回元素的指定计算样式。
语法
参数
styleName
指定要获取的属性名的字符串。样式名必须是 kebab-case。
返回值
包含计算样式值的字符串。
示例
兼容性
LCD tables only load in the browser
Element 接口的 getComputedStyleProperty() 方法返回元素的指定计算样式。
指定要获取的属性名的字符串。样式名必须是 kebab-case。
包含计算样式值的字符串。
LCD tables only load in the browser