rotation属性是css3的一个新增属性,用于围绕由rotation-point属性定义的指定点,对块级元素进行逆时针旋转。边框、内边距、内容以及背景(非固定)也会被旋转!但目前主流浏览器都还不支持该属性。

css rotation属性怎么用?
rotation属性围绕由rotation-point属性定义的指定点,对块级元素进行逆时针旋转。
语法:
立即学习“前端免费学习笔记(深入)”;
rotation: angle;
属性值:
● angle:元素旋转角度。可能的值:0deg 到 360deg。
注释:边框、内边距、内容以及背景(非固定)也会被旋转!目前主流浏览器都还不支持 rotation 属性。
css rotation属性 示例
旋转效果
注释:目前没有浏览器支持 rotation-point 或 rotation 属性。









