CSSTransformComponent
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Giao diện CSSTransformComponent của CSS Typed Object Model API là một phần của giao diện CSSTransformValue.
Thuộc tính phiên bản
CSSTransformComponent.is2DRead only-
Trả về giá trị boolean cho biết transform là 2D hay 3D.
Phương thức phiên bản
CSSTransformComponent.toMatrix()-
Trả về đối tượng
DOMMatrixmới. CSSTransformComponent.toString()-
Chuỗi ở dạng hàm transform CSS.
Điều này sẽ sử dụng giá trị của
is2Dđể trả về transform 2D hoặc 3D. Ví dụ nếu thành phần đại diện choCSSRotatevàis2Dlà false thì chuỗi được trả về sẽ ở dạng hàm transform CSSrotate3d(). Nếu true thì chuỗi được trả về sẽ ở dạng hàm 2 chiềurotate().
Ví dụ
Đang cập nhật
Thông số kỹ thuật
| Specification |
|---|
| CSS Typed OM Level 1> # csstransformcomponent> |