CSSValueList.length

CSSValueList 接口的只读属性 length 表示列表中的 CSSValue 数量。有效的索引区间为 0length-1

语法

var length = cssValueList.length;

一个 unsigned long 数值,表示此列表中 CSSValue 的个数。

规范

规范 状态 备注
Document Object Model (DOM) Level 2 Style Specification
CSSValueList.length
Obsolete Initial definition

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
length
Deprecated
Chrome No support NoEdge ? Firefox No support 1 — 62IE ? Opera No support NoSafari ? WebView Android No support NoChrome Android No support NoFirefox Android No support 4 — 62Opera Android ? Safari iOS ? Samsung Internet Android No support No

Legend

No support  
No support
Compatibility unknown  
Compatibility unknown
Deprecated. Not for use in new websites.
Deprecated. Not for use in new websites.