transform:none | <transform-function>+
matrix() = matrix(<number>[,<number>]{5,5})
matrix3d() = matrix3d(<number>[,<number>]{15,15})
translate() = translate(<translation-value>[,<translation-value>]?)
translate3d() = translate3d(<translation-value>,<translation-value>,<length>)
translatex() = translatex(<translation-value>)
translatey() = translatey(<translation-value>)
translatez() = translatez(<length>)
rotate() = rotate(<angle>)
rotate3d() = rotate3d(<number>,<number>,<number>,<angle>)
rotatex() = rotatex(<angle>)
rotatey() = rotatey(<angle>)
rotatez() = rotatez(<angle>)
scale() = scale(<number>[,<number>]?)
scale3d() = scale3d(<number>,<number>,<number>)
scalex() = scalex(<number>)
scaley() = scaley(<number>)
scalez() = scalez(<number>)
skew() = skew(<angle>[,<angle>]?)
skewx() = skewx(<angle>)
skewy() = skewy(<angle>)
perspective() = perspective(<length>)
<translation-value> = <length> | <percentage>
默认值:none
适用于:所有块级元素及某些内联元素
继承性:无
动画性:是
计算值:指定值,但相对长度会转换为绝对长度
媒体:视觉
IE | Edge | Firefox | Chrome | Safari | Opera | iOS Safari |
Android Browser |
Blackberry Browser |
Opera Mobile |
Chrome for Android |
Firefox for Android |
IE Mobile |
UC Browser for Android |
Samsung Internet |
QQ Browser |
Baidu Browser |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5.5 | 12-16 #1 | 2-3 | 4-35 -webkit- | 3.1-8 -webkit- | 9-10.1 | 3.2-8.4 -webkit- | 2.1-4.4.4 -webkit- | 7-10 -webkit- | 10 | 61 | 56 | 10+ | 11.4 -webkit- | 4+ | 1.2 | 7.12 |
6-8 | 3.5-15 -moz- | 36+ | 9+ | 10.5-12 -o- | 9.0+ | 11+ | ||||||||||
9 -ms- #1 | 16+ | 12.1 | ||||||||||||||
10-11 #1 | 15-22 -webkit- | |||||||||||||||
23+ |