CSS 参考手册
将 h1 元素旋转 180 度(从上向下):
h1
{
rotation-point:50% 50%;
rotation:180deg;
}
目前没有浏览器支持 rotation 属性。
rotation 属性围绕由 rotation-point 属性定义的指定点,对块级元素进行逆时针旋转。
提示:边框、内边距、内容以及背景(非固定)也会被旋转!
| 默认值: | 0 | 
|---|---|
| 继承性: | no | 
| 版本: | CSS3 | 
| JavaScript 语法: | object.style.rotation="180deg" | 
rotation: angle;
| 值 | 描述 | 
|---|---|
| angle | 元素旋转角度。可能的值:0deg 到 360deg。 | 
CSS 参考手册
备案信息: 粤ICP备15087711号-2
Copyright © 2008-2025 啊嘎哇在线工具箱 All Rights.
本站所有资料来源于网络,版权归原作者所有,仅作学习交流使用,如不慎侵犯了您的权利,请联系我们。