CSSTransformComponent: toString() method

Khả dụng hạn chế

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Phương thức toString() của giao diện CSSTransformComponentstringifier trả về hàm CSS Transforms.

Cú pháp

js
toString()

Tham số

Không có.

Giá trị trả về

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

Thông số kỹ thuật
CSS Typed OM Level 1
# CSSTransformComponent-stringification-behavior

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