天天看点

CSS3 rotation 属性

将 h1 元素旋转 180 度(从上向下):<p>

h1

{

rotation-point:50% 50%;

rotation:180deg;

}

CSS3 rotation 属性
CSS3 rotation 属性
CSS3 rotation 属性
CSS3 rotation 属性
CSS3 rotation 属性

目前没有浏览器支持 rotation 属性。

rotation 属性围绕由 rotation-point 属性定义的指定点,对块级元素进行逆时针旋转。

默认值:

继承:

no

版本:

CSS3

JavaScript 语法:

object.style.rotation="180deg"

rotation: angle;

描述

angle

元素旋转角度。可能的值:0deg 到 360deg。