CSS3 rotation-point 屬性
實例
將 h1 元素旋轉 180 度(從上向下):<p>
h1
{
rotation-point:50% 50%;
rotation:180deg;
}
流覽器支持
目前沒有流覽器支持 rotation-point 屬性。
屬性定義及使用說明
rotation-point 屬性是一對值,定義從上左邊框邊緣進行偏移的點。
提示:rotation-point 屬性需要與 rotation 屬性結合使用。
默認值: | 0 |
---|---|
繼承: | no |
版本: | CSS3 |
JavaScript 語法: | object.style.rotation="180deg" |
語法
rotation-point: value;
值 | 描述 |
---|---|
left top left center left bottom right top right center right bottom center top center center center bottom |
如果只規定一個關鍵字,則第二個值將是 "center"。 |
x% y% | 百分比值,參考邊框盒寬度和高度。 |