css rotation 属性围绕由 rotation-point 属性定义的指定点,对块级元素进行逆时针旋转
默认值 | 0 |
---|---|
继承 | no |
版本 | CSS3 |
JavaScript 语法 | object.style.rotation="180deg" |
rotation: *angle* ;
值 | 描述 |
---|---|
angle | 元素旋转角度。可能的值:0deg 到 360deg |
目前没有浏览器支持 rotation 属性
将 h1 元素旋转 180 度(从上向下)
h1
{
rotation-point:50% 50%;
rotation:180deg;
}
本文内容仅供个人学习/研究/参考使用,不构成任何决策建议或专业指导。分享/转载时请标明原文来源,同时请勿将内容用于商业售卖、虚假宣传等非学习用途哦~感谢您的理解与支持!