此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

CSSMatrixComponent:CSSMatrixComponent() 构造函数

有限可用

此特性不属于基线,因为它尚未在主流浏览器中得到支持。

Want more browser support for this feature? Tell us why.

CSSMatrixComponent() 构造函数创建一个用于表示 CSS 中的 matrix() 和 matrix3d() 值的新的 CSSMatrixComponent 对象。

语法

js
new CSSMatrixComponent(matrix)
new CSSMatrixComponent(matrix, options)

参数

matrix

一个二维或三维矩阵。

示例

待完成

规范

规范
CSS Typed OM Level 1
# dom-cssmatrixcomponent-cssmatrixcomponent

浏览器兼容性