天天看點

CSS3 rotation-point 屬性

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

h1

{

rotation-point:50% 50%;

rotation:180deg;

}

CSS3 rotation-point 屬性
CSS3 rotation-point 屬性
CSS3 rotation-point 屬性
CSS3 rotation-point 屬性
CSS3 rotation-point 屬性

目前沒有浏覽器支援 rotation-point 屬性。

rotation-point 屬性是一對值,定義從上左邊框邊緣進行偏移的點。

<b>提示:</b>rotation-point 屬性需要與 rotation 屬性結合使用。

預設值:

繼承:

no

版本:

CSS3

JavaScript 文法:

object.style.rotation="180deg"

描述

left top

left center

left bottom

right top

right center

right bottom

center top

center center

center bottom

如果隻規定一個關鍵詞,則第二個值将是 "center"。

x% y%

百分比值,參考邊框盒寬度和高度。