CSSValueList.length

CSSValueList 接口的只读属性 length 表示一个 CSSValueList 中的 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 ?

Legend

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

文档标签和贡献者

此页面的贡献者: RainSlide
最后编辑者: RainSlide,