CSS3 rotation property
Examples
The h1 element is rotated 180 degrees (from top to bottom): p>
h1
{
rotation-point:50% 50%;
rotation:180deg;
}
{
rotation-point:50% 50%;
rotation:180deg;
}
try it"
Browser Support
There is no browser supports the rotation property.
Attribute definitions and instructions
rotation property is surrounded by a rotation-point specified point defines attributes for block-level elements counter-clockwise.
Defaults: | 0 |
---|---|
inherit: | no |
version: | CSS3 |
JavaScript syntax: | object .style.rotation = "180deg" |
grammar
rotation:angle;
值 | 描述 |
---|---|
angle | 元素旋转角度。可能的值:0deg 到 360deg。 |