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.is2D Read 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 DOMMatrix mớ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 cho CSSRotateis2D là false thì chuỗi được trả về sẽ ở dạng hàm transform CSS rotate3d(). Nếu true thì chuỗi được trả về sẽ ở dạng hàm 2 chiều rotate().

Ví dụ

Đang cập nhật

Thông số kỹ thuật

Specification
CSS Typed OM Level 1
# csstransformcomponent

Tương thích trình duyệt