CSSTransformComponent:toString() 方法
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
CSSTransformComponent 接口的字符串化方法 toString() 返回一个 CSS Transform 函数。
语法
js
toString()
参数
无。
返回值
CSS Transform 函数形式的字符串。
这将使用 is2D 的值来返回 2D 或 3D 转换。例如,如果组件表示 CSSRotate 并且 is2D 为 false,则返回的字符串将是 CSS 转换函数 rotate3d() 的形式表示。如果为 true,则返回的字符串将是 2D 的 rotate() 函数形式表示。
示例
待完成。
规范
| Specification |
|---|
| CSS Typed OM Level 1> # CSSTransformComponent-stringification-behavior> |
浏览器兼容性
Loading…