英 [r???te??n]? ?美 [ro??te??n]??

n.旋轉(zhuǎn),轉(zhuǎn)動(dòng);輪流,循環(huán);[農(nóng)]輪作;[天]自轉(zhuǎn)

復(fù)數(shù): rotations

css rotation屬性 語(yǔ)法

作用:圍繞由 rotation-point 屬性定義的點(diǎn)對(duì)元素進(jìn)行旋轉(zhuǎn)。

語(yǔ)法:rotation: angle;

說(shuō)明:angle ? ?元素旋轉(zhuǎn)角度??赡艿闹担?deg 到 360deg。? ??

注釋?zhuān)?/strong>邊框、內(nèi)邊距、內(nèi)容以及背景(非固定)也會(huì)被旋轉(zhuǎn)!目前沒(méi)有瀏覽器支持 rotation 屬性。

css rotation屬性 示例

<!DOCTYPE html>
<html>
<head>
<style> 
h1
{
rotation-point:50% 50%;
rotation:180deg;
}
</style>
</head>
<body>

<h1>旋轉(zhuǎn)效果</h1>

<p><b>注釋?zhuān)?lt;/b>目前沒(méi)有瀏覽器支持 rotation-point 或 rotation 屬性。</p>

</body>
</html>

運(yùn)行實(shí)例 ?

點(diǎn)擊 "運(yùn)行實(shí)例" 按鈕查看在線實(shí)例