CSS Control div element rotation specifies an angle code instance:
This section describes how to use CSS3 to implement control elements to rotate the specified angle effect.
Here we do not consider the low version of the browser, because over time, the low version of the browser will be phased out, even if the current, low-version browser users of the proportion is also very small, the following directly see code example:
<!DOCTYPE HTML><HTML><Head><MetaCharSet= "Utf-8"><Metaname= "Author"content= "http://www.softwhy.com/" /><title>Ant Tribe</title><styletype= "Text/css">Div{-webkit-transform:Rotate (45deg);-moz-transform:Rotate (45deg);-o-transform:Rotate (45deg);Transform:Rotate (45deg);width:100px;Height:100px;background:#999;}</style></Head><Body><Div></Div></Body></HTML>
The above code implements our requirements, the code is relatively simple, here is not more introduction.
The Transform property can be found in the CSS3 Transform Properties section of the general introduction .
The original address is: http://www.softwhy.com/forum.php?mod=viewthread&tid=15772
For more information, refer to: http://www.softwhy.com/divcss/
CSS control div element rotation Specify angle Code instance