英 [rəʊˈteɪʃn] 美 [roʊˈteɪʃn]
n.旋转,转动;轮流,循环;[农]轮作;[天]自转
复数: rotations
css rotation属性 语法
作用:围绕由 rotation-point 属性定义的点对元素进行旋转。
语法:rotation: angle;
说明:angle 元素旋转角度。可能的值:0deg 到 360deg。
注释:边框、内边距、内容以及背景(非固定)也会被旋转!目前没有浏览器支持 rotation 属性。
css rotation属性 示例
<!DOCTYPE html>
<html>
<head>
<style>
h1
{
rotation-point:50% 50%;
rotation:180deg;
}
</style>
</head>
<body>
<h1>旋转效果</h1>
<p><b>注释:</b>目前没有浏览器支持 rotation-point 或 rotation 属性。</p>
</body>
</html>运行实例 »
点击 "运行实例" 按钮查看在线实例