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

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

#複數(shù): rotations##

css rotation屬性 語法

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

語法:rotation: angle;

#說明:angle ? ?元素旋轉(zhuǎn)角度。可能的值:0deg 到 360deg。? ??

註:邊框、內(nèi)邊距、內(nèi)容以及背景(非固定)也會旋轉(zhuǎn)!目前沒有瀏覽器支援 rotation 屬性。

css rotation屬性 範(fàn)例

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

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

<p><b>注釋:</b>目前沒有瀏覽器支持 rotation-point 或 rotation 屬性。</p>

</body>
</html>

執(zhí)行實例 ?

點(diǎn)擊 "執(zhí)行實例" 按鈕查看線上實例